Set of servers for “machine-to-machine” communications using public key infrastructure

ABSTRACT

A set of servers can support secure and efficient “Machine to Machine” communications using an application interface and a module controller. The set of servers can record data for a plurality of modules in a shared module database. The set of servers can (i) access the Internet to communicate with a module using a module identity, (ii) receive server instructions, and (iii) send module instructions. Data can be encrypted and decrypted using a set of cryptographic algorithms and a set of cryptographic parameters. The set of servers can (i) receive a module public key with a module identity, (ii) authenticate the module public key, and (iii) receive a subsequent series of module public keys derived by the module with a module identity. The application interface can use a first server private key and the module controller can use a second server private key.

CROSS-REFERENCE TO RELATED APPLICATIONS

The subject matter of this application is related to the subject matterof U.S. patent application Ser. No. 14/023,181, filed Sep. 10, 2013 inthe name of John Nix, entitled “Power Management and Security forWireless Modules in ‘Machine-to-Machine’ Communications,” which ishereby incorporated by reference in its entirety.

The subject matter of this application is also related to the subjectmatter of U.S. patent application Ser. No. 14/039,401, filed Sep. 27,2013 in the name of John Nix, entitled “Secure PKI Communications for‘Machine-to-Machine’ Modules, including Key Derivation by Modules andAuthenticating Public Keys,” which is hereby incorporated by referencein its entirety.

The subject matter of this application is also related to the subjectmatter of U.S. patent application Ser. No. 14/055,606, filed Oct. 16,2013 in the name of John Nix, entitled “Systems and Methods for‘Machine-to-Machine’ (M2M) Communications Between Modules, Servers, andan Application using Public Key Infrastructure (PKI),” which is herebyincorporated by reference in its entirety.

BACKGROUND

1. Technical Field

The present methods and systems relate to communications between a setof servers and a plurality of modules, and more particularly, to methodsand systems for supporting secure, efficient, and flexiblecommunications using Internet Protocol networks, where a server cancommunicate with both a “machine-to-machine” module and an application.

2. Description of Related Art

The combination of “machine-to-machine” (M2M) communications and usinglow-cost sensors, Internet connections, and processors is a promisingand growing field. Among many potential benefits, M2M technologies allowthe remote monitoring and/or control of people, assets, or a locationwhere manual monitoring is not economic, or costs can be significantlyreduced by using automated monitoring as opposed to manual techniques.Prominent examples today include vending machines, automobiles, alarmsystems, and remote sensors. Fast growing markets for M2M applicationstoday include tracking devices for shipping containers or pallets,health applications such as, but not limited to, the remote monitoringof a person's glucose levels or heartbeat, monitoring of industrialequipment deployed in the field, and security systems. Many M2Mapplications leverage either wired Internet connections or wirelessconnections, and both types of connections continue to grow rapidly. M2Mapplications may also be referred to as “the Internet of things”.

M2M communications can provide remote control over actuators that may beconnected to a M2M device, such as, but not limited to, turning on oroff a power switch, locking or unlocking a door, adjusting a speed of amotor, or similar remote control. A decision to change or adjust anactuator associated with an M2M device can utilize one or a series ofsensor measurements. An M2M device may also be referred to as a“wireless module” or also simply a module. As one example, if a buildingor room is too cold, then temperature can be reported to a centralserver by an M2M device and the server can instruct the M2M device toturn on a switch that activates heat or adjusts a thermostat. As thecosts for computer and networking hardware continue to decline, togetherwith the growing ease of obtaining either wired or wireless Internetaccess for small form-factor devices, the number of economicallyfavorable applications for M2M communications grows.

Many M2M applications can leverage wireless networking technologies.Wireless technologies such as, but not limited to, wireless local areanetworks and wireless wide area networks have proliferated around theworld over the past 15 years, and usage of these wireless networks isalso expected to continue to grow. Wireless local area network (LAN)technologies include WiFi and wireless wide area network (WAN)technologies include 3^(rd) Generation Partnership Project's (3GPP)3^(rd) Generation (3G) Universal Mobile Telecommunications System (UMTS)and 4^(th) Generation (4G) Long-term Evolution (LTE), LTE Advanced, andthe Institute of Electrical and Electronics Engineers' (IEEE) 802.16standard, also known as WiMax. The use of wireless technologies with“machine-to-machine” communications creates new opportunities for thedeployment of M2M modules in locations without fixed-wire Internetaccess, but also creates a significant new class of problems that needto be solved.

First, many wireless wide-area networking standards were designed andoptimized for mobile phones, which may be continuously connected to thenetwork during the day (i.e. non-sleeping hours for most subscriberswhile they may charge phones at night), in order to receive inboundphone calls and messages. In this case, the radio may be in an idlestate but utilizing discontinuous reception, but the radio is stillactive and drawing power in order to receive and process incomingsignaling from the network such as, but not limited to, a Public LandMobile Network (PLMN). A need exists in the art to make wireless M2Mcommunications efficient in order to conserve battery life andradio-frequency spectrum resources.

Since the packets transmitted and received by a wireless module willlikely traverse the public Internet for many applications, a need existsin the art to (i) prevent eavesdropping at intermediate points along thepath of packets transmitted and received, (ii) allow endpoints to verifythe identity of the source of packets received. A need exists in the artfor a wireless module and a monitoring server to leverage establishedpublic key infrastructure (PKI) techniques and algorithms. A need existsin the art for communication to be secured without requiring theestablished, but relatively processing, bandwidth, and energy intensivesecurity protocols, such as, but not limited to, IPSec, Transport LayerSecurity (TLS), and Secure Socket Layer (SSL) between a module and aserver. The establishment of theses links requires extra overhead in theform of packet handshakes and/or key exchanges at levels including thenetwork and transport layer of the traditional Open SystemsInterconnection (OSI) model.

M2M applications frequently require small, periodic messages sentbetween a wireless module and a monitoring server, where the wirelessmodule sleeps between the messages. M2M applications may leverage wiredmodules as well which can also sleep between messages. During relativelylong periods of sleep such as 30 minutes or more, the a wireless orwired network with intermediate firewalls will often tear down thenetwork and/or transport layer connections, which means the wirelessmodule would need to re-negotiate or reestablish the secure tunnels eachtime the wireless module wakes and seeks to send a relatively smallmessage to a server. A need exists in the art for supporting establishedsecurity protocols with an external application, without requiring themto be implemented on a module due to the relatively long periods ofsleep and other complexities from inactivity in the module.

Next, a need exists in the art for the communication between a moduleand a monitoring server to be highly energy and bandwidth efficient inorder to reduce energy consumption over the operating lifetime of amodule. A limiting factor for a wireless module for M2M applicationsdeployed or installed into the field is the lifetime of the battery ofthe wireless module. If the transmission techniques for the wirelessmodule are not energy efficient, the system will require more frequentmanual intervention for the replacement or recharging of batteries. Theenergy saving techniques for transmitting and receiving data shouldleverage established Internet protocols. For wired modules operating foryears or decades, a significant cost will be the power consumed fromland-line power.

Further, a need exists in the art for the secure, energy efficientcommunications that support Internet protocols to support intermediatefirewalls that may exist along the path of packets sent and received byboth a wireless module and a monitoring server. Without support forcommunication through an intermediate firewall, packets may be blockedby the firewall and the M2M application would not properly function inthis case. Currently, there are dozens of manufacturers and form-factorsof modules, and this diversity will continue to increase for theforeseeable future. By leveraging standards such as the Internet and PKItechnologies, an efficient, secure, and highly scalable system ofcommunicating could support the wide variety of modules.

In addition, the utilization of PKI technologies in modules can increasesecurity, but a number of technical challenges must be addressed. Thesechallenges increase if a deployed module required updated private/publickey pairs after operation begins. The typical paradigm of “swapping outa SIM card” (which also depend on a pre-shared secret key Ki embedded inthe card) with mobile phones may not be applicable or cost effectivewith modules, where swapping out the SIM card could be burdensome. Aneed exists in the art to allow for a deployed module to securely andautomatically begin using new private and public keys (i.e. withouthuman intervention such as swapping out a SIM card). Newer PKItechnologies may offer a wide variety of algorithms for ciphering withpublic keys, and a need exists in the art for the utilization of newpublic and private keys to support the wide variety of algorithms, evenafter a module has been installed. A need exists in the art for ascalable and secure method of associating a module identity with amodule public key, when the module begins utilizing a new public key. Aneed exists in the art for a module to efficiently be able to utilizemultiple public/private key pairs at the same time, such as withdifferent service providers or different applications simultaneously.

Another desirable feature is for an M2M module to efficiently andsecurely communicate with applications. Applications can include aweb-based interface for users to view status or input settings for aplurality of modules, and the modules may be associated with an M2Mservice provider. However, a set of PKI algorithms, keys, andcommunication protocols within used by the module for efficientcommunications module may not be directly compatible with anapplication. As one example, the application on a web server may preferto use a transport layer security (TLS) protocol with transmissioncontrol protocol (TCP) datagrams, while for energy efficiency and toconserve battery life, an M2M module may prefer to use user datagramprotocol (UDP). A need exists in the art for an intermediate server tosecurely translate secure communications to/from a module into securecommunication from/to an application. As another example, it would bedesirable for a module to support elliptic key cryptography (ECC), whilethe application may support RSA-based cryptography, and therefore a needexists in the art for a server to securely translate between the twocryptographic methods, thereby allowing the M2M module to communicatewith the application.

And other needs exist in the art as well, as the list recited above isnot meant to be exhaustive but rather illustrative.

SUMMARY

Methods and systems are provided for secure and efficient communicationusing a server to communicate with modules and an application. Themodules and application can support “Machine to Machine” communications.The methods and systems contemplated herein can also support otherapplications as well, including mobile phone handsets connecting to awireless network. An objective of the invention is to address thechallenges noted above for securing the deployment of modules thatutilize PKI algorithms and keys, as well as increasing efficiency inorder to reduce power consumption, including extending the battery lifeof a module, if present. More efficient communication can also conservevaluable radio-frequency spectrum, among other benefits. Using a serverfor secure and reliable communication of data between an application anda module can increase the value and usefulness of modules for a user.

An exemplary embodiment may take the form of methods and systems for aserver to securely receive data from a module and forward the data to anapplication server, and an application may operate on the applicationserver. The application can include a graphical user interface for auser to visually see reports and/or control modules. The module, server,and application can preferably include a set of cryptographic algorithmsfor use in sending and receiving data. The cryptographic algorithms caninclude asymmetric ciphering algorithms, symmetric ciphering algorithms,secure hash algorithms, digital signature algorithms, key pairgeneration algorithms, a key derivation function, and/or a random numbergenerator.

The module can utilize the set of cryptographic algorithms to securelygenerate or derive a module private key and a module public key. Themodule private key and module public key can be generated either (i)upon initial use or installation of the module, or (ii) at a subsequenttime after initial use such as when a new set of key pairs are requiredor are useful for continued operation of the module. After deriving themodule public key and module private key, the module private key ispreferably recorded in a secure or protected location in a nonvolatilememory within the module. In one embodiment, the module may then utilizea recorded pre-shared secret key to authenticate with a server that alsorecords or has access to the pre-shared secret key and the moduleidentity. The authentication could comprise either using message digestwith the pre-shared secret key, or using the pre-shared secret key inprocessing a symmetric ciphering key, and the authentication may alsoutilize a second key derived by both the module and the server using thepre-shared secret key. After authentication, the server canauthoritatively record the derived module public key with the moduleidentity in a database. Thus, the use of a pre-shared secret key canensure the submitted module public key is validly associated with themodule and module identity.

The server can (i) include a private key associated with the server, and(ii) receive the derived module public key. The server public key canleverage established public key infrastructure (PKI) standards, such as,but not limited to, X.509 v3 certificates and RSA or elliptic curvecryptography (ECC) algorithms and include a digital signature from acertificate authority. The server can use a module controller and anoperating system plus a connection to the Internet to monitor a socketfor incoming messages from a module. After receiving the module publickey, including potentially after a period of sleep or dormancy by themodule, the server can receive a message, where the message includes amodule identity and a module encrypted data. The module encrypted datacan include a server instruction, a security token, and additional datasuch as, but not limited to, a sensor measurement. The server candecrypt the module encrypted data using the received module public keyand extract plaintext data from the module encrypted data.

The server can establish a secure connection with the application serverusing a secure connection setup, which could comprise the initialhandshake messages for a transport-layer security protocol such as, butnot limited to, transport layer security (TLS) or IPSec. The secureconnection setup can include the transfer of a server public key and anapplication server public key. The server can send an applicationmessage to the application server using a secure connection datatransfer, where the application message includes data received from themodule such as, but not limited to, a sensor measurement or sensor data.The server can use (i) an RSA-based asymmetric ciphering algorithm andfirst server public key with the application server to securely transfera first symmetric key to the application server, and (ii) an ECC-basedasymmetric ciphering algorithm and second server public key with themodule to securely transfer a second symmetric key to the module. In anexemplary embodiment the server may also preferably use a transmissioncontrol protocol (TCP) with the application server and a user datagramprotocol (UDP) with the module. The application message to theapplication server can include a server identity, an encrypted updateinstruction, and the sensor data. The sensor data may also include asensor identity. The server can use a first Internet protocol addressand port (IP:port) number for receiving the message from the module anda second IP:port number for sending the application message to theapplication server. The application server can record the sensor data inan application database for subsequent processing and analysis for auser or other business or commercial needs.

In another embodiment, the module may be deployed within a wirelessnetwork such as, but not limited to, a 4G LTE network or a WiFi network,and the module may comprise a wireless module. The module can changestate between a sleep state and an active state, wherein the sleep statemay utilize a few milliwatts or less and the active state, includingtransmission of radio signals, may utilize several hundred milliwatts ofpower or more. After being installed next to a monitored unit, thewireless module can wake from a sleep or dormant state, utilize a sensorto collect data associated with the monitored unit, connect to thewireless network and the Internet, and send the sensor data to a server.During an active period, the module can use a UDP IP:port number to bothsend a message to the server and receive a response to the server. Themessage as a UDP datagram can be a UDP Lite datagram and with a checksumonly applied to the packet header. A UDP Lite datagram with sensor datacan include channel coding for the body of the datagram to mitigate theeffect of bit errors. Or, a regular UDP packet could be sent in multiplecopies in order to provide forward error correction.

In another embodiment of the present invention, the application servermay send an application message to the server using a secure connectiondata transfer. The application message could be encrypted using a firstserver public key and could include a module identity and a moduleinstruction. The module instruction can include an actuator setting, andalso optionally an actuator identity (since the module may includemultiple actuators). The server can decrypt encrypted data within theapplication message and record the module identity and moduleinstruction in memory or a module database. Since the module cantransition between periods of sleep and active states to conserve power,after receiving the application message the server can wait until a nextmessage is received from the module with the module identity beforesending the module instruction in a response. After waiting for the nextmessage, the server can send the module instruction to the module in aserver encrypted data using a second server public key. The first andsecond server public keys can use different cryptographic algorithmsthat are not directly compatible (i.e. the first server public key couldbe RSA-based and the second server public key could be ECC-based).

In another embodiment, the server can securely send the module a set ofcryptographic parameters, where the set of cryptographic parametersincludes values to define an equation for an elliptic curve. The valuescould comprise constants and variables such that the module cancalculate a new elliptic curve, and the elliptic curve can be differentthan standard, published curves. The set of cryptographic parameterscould be sent from the server to the module in a server encrypted data,where the server encrypted data was processed using any of (i) a firstmodule public key, (ii) a symmetric key, and (iii) a shared secret key.The module can use the set of cryptographic parameters, a random numbergenerator, and a key generation function within a cryptographicalgorithms in order to generate a new key pair, which could comprise asecond module public key and a second module private key. The module cansecurely and/or authoritatively send the second module public key to theserver, where the security includes the use of the first module publickey and/or the shared secret key.

Continuing with this embodiment, after the server confirms the properreceipt of the second, derived module public key in a response message,the server and the module can begin secure communications between themusing the second module public key. By using this exemplary embodiment,security can be further increased with the server and module using anelliptic curve that can be unique, non-standard, or defined between themand security therefore increased. In this exemplary embodiment, theparameters to define the elliptic curve equation are sent securely tothe module, so an observer along the flow of data could not observe theelliptic equation being used with a public key.

In yet another embodiment, the server can receive a first message with amodule identity and a module encrypted data, where the first moduleencrypted data includes a first sensor measurement. The server can use afirst module public key associated with a first module public keyidentity to decrypt the first module encrypted data. As one example, (a)the first module encrypted data could be ciphered with a symmetric key,and (b) the symmetric key could have been communicated using the firstmodule public key (including using the first module public key to verifya module digital signature in a session or flow of packets where thesymmetric key was transferred), and therefore (c) the module encrypteddata could be encrypted using the first module public key. The servercan also use a first server public key to decrypt the first moduleencrypted data, such as, but not limited to, the symmetric key beingderived using both the first module public key and the first serverpublic key and a key derivation function within a cryptographicalgorithms. The server can extract the first sensor measurement and sendthe data to an application server in an application message. Theapplication message could be encrypted using a second server public key.The first and second server public keys can be different because theycould each be associated with a different algorithm or definingequation.

Continuing with this embodiment, the server can send a moduleinstruction and a set of cryptographic parameters to the module, wherethe module is instructed to derive a new set of keys, and the module cansubsequently derive a second module public key and a second moduleprivate key after receiving the module instruction. The module can thensend the second module public key, a second module public key identity,and the module identity to the server. The server can receive a secondmodule encrypted data that includes a second sensor data, where thesecond sensor data is encrypted using the second module public key. Asone example, (a) the second module encrypted data could be ciphered witha symmetric key, and (b) the symmetric key could have been communicatedusing the second module public key (including using the second modulepublic key to verify a module digital signature in a session where thesymmetric key was transferred), and therefore (c) the module encrypteddata could be encrypted using the second module public key. The servercan extract the second sensor data using the second module public key.The server can use the second server public key to send a secondapplication message with the second sensor data to the applicationserver. Note that the module public key can change, but both (i) thesecond server public key used with the application server and also (ii)keys associated with the application server did not change. In thismanner according to this embodiment, a module can derive a new publicand private key while a server and application server can continue tocommunicate using existing public and private keys.

In another embodiment, a system supporting M2M communications caninclude a set of application servers, a set of servers, and a set ofmodules. The set of servers can record and query data from a sharedmodule database. At least one of the application servers can process ororiginate a module instruction, and send the module instruction with amodule identity to the shared module database. A module with the moduleidentity may wake from a dormant state and send a message with a moduleidentity and a module encrypted data to a server, where the server was amember of the set of servers. Upon receiving the message and verifyingthe message originated from a module with the module identity, theserver can poll the shared module database using the module identity.The shared module database can return the module instruction that wasrecorded by the application server. The server can send the moduleinstruction to the module with the module identity in a response. Uponexecuting the module instruction, the module can send a confirmationwith a timestamp to the server in a module encrypted data. The servercan then send the timestamp and a module identity in an applicationmessage to the application server, and in this manner the applicationserver can determine a time when the module instruction was processed bythe module.

In an exemplary embodiment, a module with a module identity can deriveits own public and private keys after distribution of the module using aset of cryptographic parameters. A set of servers can receive a messagethat uses a module identity, where the module identity can be verifiedusing at least one of a module digital signature and a shared secretkey. The set of servers can send the module with the module identity theset of cryptographic parameters. Over time, the module can use at leasta subset of the cryptographic parameters to derive multiple pairs ofmodule public and private keys. Over time, the server can receive aseries of module public keys with the module identity and use a previousmodule public key in the series to verify and/or authenticate a messagewith a module public key.

These as well as other aspects and advantages will become apparent tothose of ordinary skill in the art by reading the following detaileddescription, with reference where appropriate to the accompanyingdrawings.

BRIEF DESCRIPTION OF THE DRAWINGS

Various exemplary embodiments are described herein with reference to thefollowing drawings, wherein like numerals denote like entities.

FIG. 1 a is a graphical illustration of an exemplary system, where aserver and a module connect to the Internet, in accordance withexemplary embodiments;

FIG. 1 b is a graphical illustration of hardware, firmware, and softwarecomponents for a module, in accordance with exemplary embodiments;

FIG. 1 c is a graphical illustration of hardware, firmware, and softwarecomponents for a server, in accordance with exemplary embodiments;

FIG. 1 d is a graphical illustration of hardware, firmware, and softwarecomponents for an application server, in accordance with exemplaryembodiments;

FIG. 1 e is a graphical illustration of components within a module, inaccordance with exemplary embodiments;

FIG. 1 f is a graphical illustration of components within a server, inaccordance with exemplary embodiments;

FIG. 1 g is a graphical illustration of components in a set ofcryptographic algorithms, in accordance with exemplary embodiments;

FIG. 1 h is a graphical illustration of an exemplary system thatincludes a user, an application, a set of servers, and a set of modules,in accordance with exemplary embodiments;

FIG. 2 is a graphical illustration of an exemplary system, where amodule sends a message to a server, and where the server responds to themessage, in accordance with exemplary embodiments;

FIG. 3 is a flow chart illustrating exemplary steps for a server toreceive a message from a module, in accordance with exemplaryembodiments;

FIG. 4 a is a flow chart illustrating exemplary steps for a server toprocess a message, including verifying a module's identity anddecrypting data, in accordance with exemplary embodiments;

FIG. 5 a is a flow chart illustrating exemplary steps for a server toprocess a response for a module, including sending and signing a moduleinstruction, in accordance with exemplary embodiments;

FIG. 5 b is a flow chart illustrating exemplary steps for a server tocommunicate with a module that has derived a public key and private key,in accordance with exemplary embodiments;

FIG. 6 a is a simplified message flow diagram illustrating an exemplarymessage received by a server, and an exemplary response sent from theserver, in accordance with exemplary embodiments;

FIG. 6 b is a simplified message flow diagram illustrating an exemplarymessage received by a server, wherein the message includes a derivedmodule public key, in accordance with exemplary embodiments;

FIG. 7 is a simplified message flow diagram illustrating an exemplarysystem with exemplary data transferred between a module and anapplication using a server, in accordance with exemplary embodiments;

FIG. 8 is a simplified message flow diagram illustrating an exemplarysystem with exemplary data transferred between a module and anapplication using a server, in accordance with exemplary embodiments;

FIG. 9 is a simplified message flow diagram illustrating exemplary datatransferred between (i) a server and an application and between (ii) aserver and a module, in accordance with exemplary embodiments;

FIG. 10 is a flow chart illustrating exemplary steps for a set ofservers to communicate with a module, in accordance with exemplaryembodiments;

FIG. 11 is a flow chart illustrating exemplary steps for a set ofservers to communicate with a module and an application server, inaccordance with exemplary embodiments;

FIG. 12 is a simplified message flow diagram illustrating an exemplarysystem with exemplary data transferred between a module and anapplication using a server, in accordance with exemplary embodiments;

FIG. 13 is a simplified message flow diagram illustrating an exemplarysystem with exemplary data transferred between a module and anapplication using a server, in accordance with exemplary embodiments;

FIG. 14 is a graphical illustration of an exemplary system that includesa set of application servers, a set of servers, and a set of modules, inaccordance with exemplary embodiments.

DETAILED DESCRIPTION OF EXEMPLARY EMBODIMENTS OF THE INVENTION

FIG. 1 a

FIG. 1 a is a graphical illustration of an exemplary system, where aserver and a module connect to the Internet, in accordance withexemplary embodiments. The system 100 includes a module 101 operatingwithin a wireless network 102. System 100 can also include a moduleprovider 109, an Internet 107, and an M2M service provider 108, acertificate authority 118, and a monitored unit 119. M2M serviceprovider 108 can include a server 105. System 100 is illustrated withoutspecific packet transmissions between module 101 and M2M serviceprovider 108. Examples of the communications and messages pertaining tothe present invention will be illustrated in later Figures. Ascontemplated herein, machine-to-machine communications may comprisecommunication between a module 101 and a server 105, such that data canbe transferred between the two with minimal manual intervention,although manual intervention can be required to set up system 100 andany occasional manual maintenance required. As contemplated herein,machine-to-machine communications may also be referred to as “theInternet of things” (IoT). Also note that module 101 may comprise awireless module, such that module 101 can communicate with wirelessnetwork 102 using a radio and an antenna. A wireless or a wiredconfiguration for module 101 can be utilized in the present invention.

If module 101 operates as a wireless module, module 101 and wirelessnetwork 102 can communicate using a base station 103. Module 101 andwireless network 102 can utilize a variety of wireless technologies tocommunicate, including WiFi, WiMax, a 2nd generation wireless wide areanetwork (WAN) technology such as, but not limited to, General PacketRadio Services (GPRS) or Enhanced Data rates for GSM Evolution (EDGE),3rd Generation Partnership Project (3GPP) technology such as, but notlimited to, 3G, 4G LTE, or 4G LTE Advanced, and other examples exist aswell. A wired module 101 can connect to the Internet 107 via a wiredconnection such as, but not limited to, an Ethernet, a fiber optic, or aUniversal Serial Bus (USB) connection (not shown).

Generally, the communication techniques described herein can beindependent of the network technologies utilized at the physical anddata-link layers, so long as the underlying network provides access tothe Internet 107 and supports Internet Protocols (IP). The Internet 107can be an IPv4 or an IPv6 packet-switched based network that utilizesstandards derived from the Internet Engineering Task Force, such as, butnot limited to, RFC 786 (User Datagram Protocol), RFC 793 (TransmissionControl Protocol), and related protocols. The Internet 107 can be thepublic Internet comprising globally routable IP addresses, or a privatenetwork that utilizes private IP addresses. Although Internet 107 isillustrated as the globally routable public Internet in FIG. 1, Internet107 could also be a private Internet that is (i) not globally routableand (ii) only accessible to authorized modules and servers. As oneexample of a private Internet 107, Internet 107 could use private IPaddresses for nodes on the network, and in this case Internet 107 couldbe referred to as an intranet or private network. Alternatively,Internet 107 could be a private network layered on top of the publiclyroutable Internet via secured and encrypted connections. The specificnumbers for IP addresses and port numbers shown in FIG. 1 and otherfigures are illustrative and any valid IP address or port number can beused, including an IPv4 and an IPv6 address.

When operating in a wireless network configuration, module 101 canaccess the Internet 107 via the wireless network 102. In the wirelessnetwork configuration, module 101 can be a wireless handset, a cellularphone, a smartphone, a tablet computer, a laptop, a computer with aradio, a tracking device, or a circuit board with a radio that accesseswireless network 102. Examples of wireless modules that utilize awireless WAN such as, but not limited to, 2G and 3G networkingtechnologies include the Motorola® G24-1 and Huawei® MC323. Examplemanufacturers of wireless modules in 2012 include Sierra Wireless® andTelit®. In a wired configuration (not shown), module 101 can be acomputer, security camera, security monitoring device, networkedcontroller, etc. A more detailed depiction of exemplary components of amodule 101 is included in FIG. 1 b and FIG. 1 e below. Module 101 couldalso comprise a “point of presence” payment terminal, such that a sensor101 f associated with module 101 could collect payment information suchas, but not limited to, an account number from a credit card or similarpayment card. Module 101 could communicate with the payment card via amagnetic reader or near-field wireless communications, and in this casethe magnetic reader or antenna for near-field communications canfunction as a sensor. Module 101 could also operate as a “smartcard”such that an end user presents module 101 to merchants for payments.

Wireless network 102 may comprise either a wireless local area network(LAN) such as, but not limited to, an 802.11 WLAN, Bluetooth, or Zigbeeamong other possibilities, and module 101 operating in wireless modecould communicate with a base station 103 of a wireless network 102using a radio and an antenna. Wireless network 102 could operate as aMode II device according to FCC Memorandum Opinion and Order (FC-12-36)and related white space regulation documents. If module 101 supportsIEEE 802.15.4, then wireless network 102 could be a Zigbee network, anISA100.11a standards-based network, or a 6LoWPAN network as described byIETF RFC 4944. Other possibilities exist as well for the wirelesstechnology utilized by a wireless network 102 and module 101, operatingin a wireless mode, without departing from the scope of the presentinvention.

Module 101 can collect data regarding a monitored unit 119 andperiodically report status to an M2M service provider 108 or a server105. Examples of a monitored unit 119 can include a vending machine, analarm system, an automobile or truck, a standard 40-foot or 20-footshipping container, or industrial equipment such as, but not limited to,a transformer on an electrical grid or elevator in a building.Additional examples of a monitored unit 119 include can also include apallet for shipping or receiving goods, an individual box ofpharmaceuticals, a health monitoring device attached to a person suchas, but not limited to, a pacemaker or glucose monitor, and a gate ordoor for opening and closing. Other examples exist as well withoutdeparting from the scope of the present invention. Module 101 canutilize a sensor to measure and collect data regarding a parameter ofmonitored unit 119 such as, but not limited to, temperature, physicallocation potentially including geographical coordinates from a GlobalPositioning System (GPS) receiver, radiation, humidity, surroundinglight levels, surrounding RF signals, weight, vibration and/or shock,voltage, current, and/or similar measurements.

As illustrated in FIG. 1 a, wireless network 102 may include a wirelessnetwork firewall 104 and M2M service provider 108 may include a servernetwork firewall 124. These firewalls may be used to securecommunication at the data link, network, transport, and/or applicationlayers of communications using the Internet 107. Firewalls 104 and 124could perform network address translation (NAT) routing or operate assymmetric firewalls, and selectively filter packets received throughInternet 107 in order to secure system 100. The firewall functionalityof firewalls 104 and 124 could be of many possible types, including asymmetric firewall, a network-layer firewall that filters inboundpackets according to pre-determined rules, an application-layerfirewall, or a NAT router, as examples. Although a single firewall 104and 124 is illustrated in wireless network 102 (or a wired network 102or simply “network 102”) and with M2M service provider 108,respectively, firewall 104 and 124 may each comprise multiple firewallsthat operate in conjunction and the combined operation may be considereda single firewall 104 and 124, respectively. Firewall 104 and/orfirewall 124 can include a firewall port binding timeout value 117(illustrated in FIG. 2), which can represent the time allowed for aninbound packet from the Internet 107 to pass through firewall 104 orfirewall 124 after module 101 or server 105, respectively, sends apacket out. Firewall port binding timeout value 117 may be determined ona per-protocol basis, such as an exemplary time of 60 seconds for UDPpackets and 8 minutes for TCP packets, although other time values for afirewall port binding timeout value 117 are possible as well. Inboundpackets from Internet 107 to module 101 may be dropped by firewall 104after a time exceeding firewall port binding timeout value 117 hastranspired since the last packet transmitted by module 101.

According to a preferred exemplary embodiment, module 101 may preferablyrecord a module private key 112. As described in additional figuresbelow, module 112 can generate a key pair comprising a module privatekey 112 and a module public key 111, where module private key 112resides within module 101 and may not be shared or transmitted to otherparties. Alternatively, the present invention also contemplates thatmodule 101 does not derive its own module private key 112, and rathermodule private key 112 is securely loaded or transmitted to module 101.Module 101 may also be associated with a module provider 109. Moduleprovider 109 could be a manufacturer or distributor of module 101, ormay also be the company that installs and services module 101 orassociates module 101 with monitored unit 119. Module provider 109 canrecord a module public key 111 and a certificate 122 (illustrated belowin FIG. 1 e) for module 101. Module public key 111 may be associatedwith a module public key identity 111 a, which could be an identifier ofmodule public key 111.

In embodiments, a module 101 may utilize multiple module public keys 111over the lifetime of module 101 (including multiple corresponding moduleprivate keys 112), and module public key identity 111 a can be used toselect and/or identify the correct module public key 111. Module publickey identity 111 a could be a string or sequence number uniquelyassociated with module public key 111 for a given module 101 (i.e.module public key identity 111 a does not need to be globally unique).As illustrated in FIG. 1 a, module public key identity 111 a maypreferably not be included in the string or number comprising modulepublic key 111, but rather associated with the string or numbercomprising module public key 111, and in this case the two together(module public key identity 111 a and the string or number for modulepublic key 111) can refer to module public key 111 as contemplatedherein.

The module public key 111 can optionally be signed by a certificateauthority 118 in order to confirm the identity of module 101 and/or theidentity of module provider 109. Module provider 109 can also functionas a certificate authority 118 for module 101. Thus, the validity ofmodule public key 111, possibly recorded in a certificate 122(illustrated in FIG. 1 e) could be checked with module provider 109, andthe wireless module provider's 109 provider public key 120 could bechecked against certificate authority 118. Other configurations forsigning public keys and using certificates with public keys are possibleas well without departing from the scope of the present invention.

Public keys and private keys as contemplated in the present invention,including module public key 111 and module private key 112 andadditional keys described herein, may leverage established standards forPublic Key Infrastructure (PKI). Public keys may be formatted accordingto the X.509 series of standards, such as, but not limited to, X.509 v3certificates, and subsequent or future versions, and these keys may beconsidered cryptographic keys. The keys can support standards such as,but not limited to, the International Organization for Standardization(ISO) ISO/IEC 9594 series of standards (herein incorporated byreference) and the Internet Engineering Task Force (IETF) RFC 5280titled “Internet X.509 Public Key Infrastructure Certificate andCertificate Revocation List (CRL) Profile” (herein incorporated byreference), including future updates to these standards.

Module public key 111 and module private key 112, as well as the otherprivate and public keys described within the present invention, could begenerated using standard software tools such as, but not limited to,Openssl, and other tools to generate public and private keys exist aswell. Public and private keys as contemplated herein could be recordedin a file such as, but not limited to, a *.pem file (Privacy-enhancedElectronic Mail), a file formatted according to Basic Encoding Rules(BER), Canonical Encoding Rules (CER), or Distinguished Encoding Rules(DER), or as text or binary file. Other formats for public and privatekeys may be utilized as well, including proprietary formats, withoutdeparting from the scope of the present invention. As contemplatedherein, a key may also comprise either a public key or a private key. Apublic key as contemplated herein may also be considered a certificateor a public certificate. A private key as contemplated herein may alsobe considered a secret key.

Other configurations besides the one illustrated in FIG. 1 a arepossible as well. Server 105 could reside within wireless network 102 ina data center managed by wireless network 102. Wireless network 102could also operate as a module provider 109. Although a single module101 and server 105 are illustrated in FIG. 1 a, system 100 couldcomprise a plurality of each of these elements. Module 101 could alsorecord sensor data pertaining to a plurality of monitored units 119.Module 101 could be mobile, such as physically attached to a truck or apallet, and module 101 could connect to a series of different wirelessnetworks 102 or base stations 103 as module 101 moves geographically.Other configurations are possible as well without departing from thescope of the present invention.

FIG. 1 b

FIG. 1 b is a graphical illustration of hardware, firmware, and softwarecomponents for a module, in accordance with exemplary embodiments. FIG.1 b is illustrated to include many components that can be common withina module 101, and module 101 may also operate in a wirelessconfiguration in order to connect with a wireless network 102. Module101 may consist of multiple components in order to collect sensor dataor control an actuator associated with a monitored unit 119. In awireless configuration, the physical interface 101 a of module 101 maysupport radio-frequency (RF) communications with networks including awireless network 102 via standards such as, but not limited to, GSM,UMTS, mobile WiMax, CDMA, LTE, LTE Advanced, and/or other mobile-networktechnologies. In a wireless configuration, the physical interface 101 amay also provide connectivity to local networks such as, but not limitedto, 802.11 WLAN, Bluetooth, or Zigbee among other possibilities. In awireless configuration, module 101 could use a physical interface 101 abe connected with both a wireless WAN and wireless LAN simultaneously.In a wired configuration, the physical interface 101 a can provideconnectivity to a wired network such as, but not limited to, through anEthernet connection or USB connection.

The physical interface 101 a can include associated hardware to providethe connections such as, but not limited to, radio-frequency (RF)chipsets, a power amplifier, an antenna, cable connectors, etc., andadditional exemplary details regarding these components are describedbelow in FIG. 1 e. Device driver 101 g can communicate with the physicalinterfaces 101 a, providing hardware access to higher-level functions onmodule 101. Device drivers 101 g may also be embedded into hardware orcombined with the physical interfaces. Module 101 may preferably includean operating system 101 h to manage device drivers 101 g and hardwareresources within module 101. The operating systems described herein canalso manage other resources such as, but not limited to, memory and maysupport multiple software programs operating on module 101 or server105, respectively, at the same time. The operating system 101 h caninclude Internet protocol stacks such as, but not limited to, a UserDatagram Protocol (UDP) stack, Transmission Control Protocol (TCP)stack, a domain name system (DNS) stack, etc., and the operating system101 h may include timers and schedulers for managing the access ofsoftware to hardware resources. The operating system shown of 101 h canbe appropriate for a low-power device with limited memory and CPUresources (compared to a server 105). An example operating system 101 hfor module 101 includes Linux, Android® from Google®, Windows® Mobile,or Open AT® from Sierra Wireless®. Additional example operating systems101 h for module 101 include eCos, uC/OS, LiteOs, and Contiki, and otherpossibilities exist as well without departing from the scope of thepresent invention.

A module program 101 i may be an application programmed in a languagesuch as, but not limited to, C, C++, Java, and/or Python, and couldprovide functionality to support M2M applications such as, but notlimited to, remote monitoring of sensors and remote activation ofactuators. Module program 101 i could also be a software routine,subroutine, linked library, or software module, according to onepreferred embodiment. As contemplated herein, a module program 101 i maybe an application operating within a smartphone, such as, but notlimited to, an iPhone® or Android®-based smartphone, and in this casemodule 101 could comprise the smartphone. The application functioning asa module program 101 i could be downloaded from an “app store”associated with the smartphone. Module program 101 i can include datareporting steps 101 x, which can provide the functionality or CPU 101 binstructions for collecting sensor data, sending messages to server 105,and receiving responses from server 105, as described in the presentinvention.

Many of the logical steps for operation of module 101 can be performedin software and hardware by various combinations of sensor 101 f,actuator 101 y, physical interface 101 a, device driver 101 g, operatingsystem 101 h, module program 101 i, and data reporting steps 101 x. Whenmodule 101 is described herein as performing various actions such asacquiring an IP address, connecting to the wireless network, monitoringa port, transmitting a packet, sending a message, receiving a response,or encrypting or signing data, specifying herein that module 101performs an action can refer to software, hardware, and/or firmwareoperating within module 101 illustrated in FIG. 1 b performing theaction. Note that module 101 may also optionally include user interface101 j which may include one or more devices for receiving inputs and/orone or more devices for conveying outputs. User interfaces are known inthe art and generally are simple for modules such as, but not limitedto, a few LED lights or LCD display, and thus user interfaces are notdescribed in detail here. User interface 101 j could comprise a touchscreen if module 101 operates as a smartphone or mobile phone. Asillustrated in FIG. 1 b, module 101 can optionally omit a user interface101 j, since no user input may be required for many M2M applications,although a user interface 101 j could be included with module 101.

Module 101 may be a computing device that includes computer componentsfor the purposes of collecting data from a sensor 101 f or triggering anaction by an actuator 101 y. Module 101 may include a central processingunit (CPU) 101 b, a random access memory (RAM) 101 e, and a system bus101 d that couples various system components including the random accessmemory 101 e to the processing unit 101 b. The system bus 101 d may beany of several types of bus structures including a memory bus or memorycontroller, a peripheral bus, and a local bus using any of a variety ofbus architectures including a data bus. Note that the computercomponents illustrated for the module 101 in FIG. 1 b may be selected inorder to minimize power consumption and thereby maximize battery life,if module 101 includes a battery and is not attached to external power.In addition, the computer components illustrated for the module 101 inFIG. 1 b may also be selected in order to optimize the system for bothlong periods of sleep relative to active communications and also may beoptimized for predominantly uplink (i.e. device to network)communications with small packets or messages. The computer componentsillustrated for the module 101 in FIG. 1 b may also be general-purposecomputing components, and specialized components are not required inorder to utilize many of the embodiments contemplated herein.

Module 101 may include a read-only memory (ROM) 101 c which can containa boot loader program. Although ROM 101 c is illustrated as “read-onlymemory”, ROM 101 c could comprise long-term memory storage chipsets orphysical units that are designed for writing once and reading manytimes. As contemplated within the present invention, a read-only addresscould comprise a ROM 101 c memory address or another hardware addressfor read-only operations accessible via bus 101 d. Changing datarecorded in a ROM 101 c can require a technician have physical access tomodule 101, such as, but not limited to, removing a cover or part of anenclosure, where the technician can subsequently connect equipment to acircuit board in module 101, including replacing ROM 101 c. ROM 101 ccould also comprise a nonvolatile memory, such that data is storedwithin ROM 101 c even if no electrical power is provided to ROM 101 c.Although not illustrated in FIG. 1 b, but illustrated in FIG. 1 e below,module 101 could also include a flash memory 101 w. Module program 101i, data reporting steps 101 x, operating system 101 h, or device driver101 g could be stored in flash memory 101 w within module 101 when themodule is powered off. These components and/or instructions could bemoved from a flash memory 101 w (not shown in FIG. 1 b but shown in FIG.1 e) into RAM 101 e when the module is powered on. Note that ROM 101 ccould be optionally omitted or included in a memory unit within CPU 101b (not shown).

Although the exemplary environment described herein employs ROM 101 cand RAM 101 e, it should be appreciated by those skilled in the art thatother types of computer readable media which can store data that isaccessible by a module 101, such as, but not limited to, memory cards,subscriber identity module (SIM) cards, local miniaturized hard disks,and the like, may also be used in the exemplary operating environmentwithout departing from the scope of the invention. The memory andassociated hardware illustrated in FIG. 1 b provide nonvolatile storageof computer-executable instructions, data structures, program modules,module program 101 i, and other data for computer or module 101. Notethe module 101 may include a physical data connection at the physicalinterface 101 a such as, but not limited to, a miniaturized universalserial bus adapter, firewire, optical, or other another port and thecomputer executable instructions such as, but not limited to, moduleprogram 101 i, data reporting steps 101 x, operating system 101 h, ordevice driver 101 g can be initially loaded into memory such as, but notlimited to, ROM 101 c or RAM 101 e through the physical interface 101 abefore module 101 is given to an end user, shipped by a manufacturer toa distribution channel, or installed by a technician. In addition, thecomputer executable instructions such as, but not limited to, moduleprogram 101 i, data reporting steps 101 x, operating system 101 h ordevice driver 101 g could be transferred wirelessly to module 101. Ineither case (wired or wireless transfer of computer executableinstructions), the computer executable instructions such as moduleprogram 101 i, data reporting steps 101 x, operating system 101 h, ordevice driver 101 g could be stored remotely on a disk drive, solidstate drive, or optical disk (external drives not shown).

A number of program modules may be stored in RAM 101 e, ROM 101 c, orpossibly within CPU 101 b, including an operating system 101 h, devicedriver 101 g, an http client (not shown), a DNS client, and relatedsoftware. Further, the module program 101 i and/or data reporting steps101 x can perform the various actions described in the present inventionfor the module 101 through instructions the module program 101 i and/ordata reporting steps 101 x provide to the CPU 101 b. A user may entercommands and information into module 101 through an optional userinterface 101 j, such as a keypad, keyboard (possibly miniaturized for amobile phone form-factor), and a pointing device. Pointing devices mayinclude a trackball, an electronic pen, or a touch screen. A userinterface 101 j illustrated in FIG. 1 b can also comprise thedescription of a user interface 101 j within U.S. patent applicationSer. No. 14/039,401, filed Sep. 27, 2013 in the name of John Nix, whichis herein incorporated in its entirety.

The module 101, comprising a computer, may operate in a networkedenvironment using logical connections to one or more remote computers,such as the server 105 illustrated in FIG. 1 a. Server 105 can alsofunction as a general purpose server to provide files, programs, diskstorage, remote memory, and other resources to module 101 usuallythrough a networked connection. Additional details regarding server 105are provided in FIG. 1 c below. Additional remote computers with whichmodule 101 communicates may include another module 101 or mobile device,an M2M node within a capillary network, a personal computer, otherservers, a client, a router, a network PC, a peer device, a base station103, or other common network node. It will be appreciated that thenetwork connections shown throughout the present invention are exemplaryand other means of establishing a wireless or wired communications linkmay be used between mobile devices, computers, servers, correspondingnodes, and similar computers.

The module program 101 i and data reporting steps 101 x operating withinmodule 101 illustrated in FIG. 1 b can provide computer executableinstructions to hardware such as CPU 101 b through a system bus 101 d inorder for a module 101 to (i) collect data from a sensor, (ii) changethe state of an actuator 101 y, and (iii) send or receive packets with aserver 105, thus allowing server 105 to remotely monitor or control amonitored unit 119. The module program 101 i and/or data reporting steps101 x can enable the module 101 to transmit or send data from sensor 101f or module 101 by recording data in memory such as RAM 101 e, where thedata can include sensor data, a destination IP:port number, a packet orpacket header value, an encryption or ciphering algorithm and key, adigital signature algorithm and key, etc. The data recorded in RAM 101 ecan be subsequently read by the operating system 101 h or the devicedriver 101 g. The operating system 101 h or the device driver 101 g canwrite the data to a physical interface 101 a using a system bus 101 d inorder to use a physical interface 101 a to send data to a server 105using the Internet 107. Alternatively, the module program 101 i and/ordata reporting steps 101 x can write the data directly to the physicalinterface 101 a using the system bus 101 d.

The module program 101 i and/or data reporting steps 101 x, or operatingsystem 101 h can include steps to process the data recorded in memorysuch as, but not limited to, encrypting data, selecting a destinationaddress, or encoding sensor data acquired by (i) a sensor 101 f or (ii)through a physical interface 101 a such as, but not limited to, athermocouple, shock or vibration sensor, light sensor, or globalpositioning system (GPS) receiver, etc. The module 101 can use thephysical interface 101 a such as, but not limited to, a radio totransmit or send the data from a sensor to a base station 103. For thoseskilled in the art, other steps are possible as well for a moduleprogram 101 i or operating system 101 h to collect data from a sensor101 f and send the data in a packet without departing from the scope ofthe present invention.

Conversely, in order for module 101 to receive a packet or response fromserver 105, the physical interface 101 a can use a radio to receive datafrom a base station 103. The received data can include information froma server 105 and may comprise a datagram, a source IP:port number, apacket or header value, an instruction for module 101, anacknowledgement to a packet that module 101 sent, a digital signature,and/or encrypted data. The operating system 101 h or device driver 101 gcan use a system bus 101 d and CPU 101 b to record the received data inmemory such as RAM 101 e, and the module program 101 i or operatingsystem 101 h may access the memory in order to process the received dataand determine the next step for the module 101 after receiving the data.The steps within this paragraph may also describe the steps a moduleprogram 101 i or data reporting steps 101 x can perform in order toreceive a packet or a response 209 below. For those skilled in the art,other steps are possible as well for a module program 101 i, datareporting steps 101 x, or module 101 to receive a packet or responsefrom a server 105 within the scope of the present invention.

Moreover, those skilled in the art will appreciate that the presentinvention may be implemented in other computer system configurations,including hand-held devices, netbooks, portable computers,multiprocessor systems, microprocessor based or programmable consumerelectronics, network personal computers, minicomputers, mainframecomputers, and the like. The invention may also be practiced indistributed computing environments, where tasks are performed by remoteprocessing devices that are linked through a communications network. Ina distributed computing environment, program modules may be located inboth local and remote memory storage devices. In addition, the terms“mobile node”, “mobile station”, “mobile device”, “M2M module”, “M2Mdevice”, “networked sensor”, or “industrial controller” can be used torefer to module 101 or its functional capabilities of (i) collectingsensor data regarding a monitored unit 119, (ii) changing state of anactuator 101 y associated with monitored unit 119, and/or (iii)communicating the data associated with a monitored unit 119 with awireless network 102. The function of module 101 and sensor 101 f couldbe integrated, and in this case module 101 could also be referred to asa “sensor”, “intelligent sensor”, or “networked sensor”. Further, theterm “module” or “monitoring device” can be used to refer to the moduleprogram 101 i when module program 101 i provides functional capabilitiessuch as reporting data from a sensor 101 f to a server 105 or receivinginstructions for an actuator 101 y from a server 105. Otherpossibilities exist as well for the configuration or combination ofcomponents illustrated in FIG. 1 b without departing from the scope ofthe present invention.

FIG. 1 c

FIG. 1 c is a graphical illustration of hardware, firmware, and softwarecomponents for a server, in accordance with exemplary embodiments. Theillustrated components for the server 105 in FIG. 1 c include a centralprocessing unit (CPU) 105 b, a random access memory (RAM) 105 e, asystem bus 105 d, storage 105 m, an operating system 105 h, and a modulecontroller 105 x. These elements can provide functions equivalent to thecentral processing unit (CPU) 101 b, RAM 101 e, system bus 101 d, flashmemory 101 w, and an operating system 101 h described above in FIG. 1 b,respectively. In general, a server 105 can have higher-end componentssuch as, but not limited to, a larger CPU 105 b and greater RAM 105 e inorder to support communications with a plurality of modules 101. Server105 can comprise a general purpose computer such as, but not limited to,a rack mounted server within a data center or rack, or could alsocomprise a desktop computer or laptop. Server 105 could also be aspecialized computer, with hardware and software selected for supportinga plurality of modules 101 connecting and communicating simultaneously.Operating system 101 h can comprise an operating system appropriate fora server such as, but not limited to, Linux, Solaris®, or Windows®Server. Server 105 can preferably include at least one wired Ethernetconnection with high bandwidth that is persistently connected to theInternet 107, while the Internet 107 connection for module 101 may betransient as module 101 changes between sleep and active states. Modulecontroller 105 x can provide the server-side logic for managingcommunications and controlling module 101 using a module database 105 k.Application interface 105 i can provide functionality for communicatingwith external servers or nodes, such as, but not limited to, anapplication server 171 illustrated in FIG. 1 d.

A module controller 101 x and application interface 105 i may beapplications programmed in a language such as, but not limited to, C,C++, Java, or Python and could provide functionality to support M2Mapplications such as, but not limited to, remote monitoring of sensorsand remote activation of actuators. Module controller 105 x andapplication interface 105 i could also be software routines,subroutines, linked libraries, or software modules, according topreferred embodiments. Many of the logical steps for operation of server105, module controller 105 x, and/or application interface 105 i can beperformed in software and hardware by various combinations of physicalinterface 105 a, system bus 105 d, device driver 105 g, and operatingsystem 105 h. A module controller 105 x and application interface 105 ican also access a set of cryptographic algorithms 141 (in FIG. 1 gbelow) in order (i) to encrypt and decrypt data, and also (ii) processor generate a digital signature and verify received digital signatures.When server 105 is described herein as performing various actions suchas, but not limited to, acquiring an IP address, monitoring a port,transmitting or sending a packet, receiving a message, or encrypting orsigning a message, specifying herein that server 105 performs an actioncan refer to software, hardware, and/or firmware operating within server105 performing the action. As contemplated herein, when a server 105 isdescribed as performing an action such as, but not limited to, sending aresponse, receiving a message, verifying a digital signature, decryptingdata, etc., in some embodiments a set of servers 105 n can perform theactions for the server 105. In this case, a server 105 could be a memberof the set of servers 105 n.

The server 105 may also include a user interface 105 j such as a display(not shown) which could also comprise any type of display devices suchas a liquid crystal display (LCD), a plasma display, and an organiclight-emitting diode (OLED) display, or a cathode ray tube (CRT). A userinterface 105 j for the server 105 may optionally be provided remotelysuch as, but not limited to, (i) via a web browser or a secure terminalsuch as, but not limited to, secure shell (SSH) with (ii) anothercomputer operated by an administrator (not shown). A user oradministrator may enter commands and information into server 105 througha user interface 105 j, such as, but not limited to, a keypad, keyboard,and a pointing device. In addition, the server 105 may store computerexecutable instructions such as, but not limited to, module controller105 x or application interface 105 i on storage 105 m. Storage 105 m maycomprise a disk drive, a solid-state drive, an optical drive, or a diskarray. Module controller 101 x (i) can manage communications with module101 or a plurality of modules 101 and (ii) may be downloaded andinstalled on the server 105. As noted previously and elsewhere herein,module program 101 i and module controller 105 x can preferablyinteroperate with each other in order to collect sensor data and controlan actuator associated with a monitored unit 119.

The application interface 105 i and/or module controller 101 x operatingwithin server 105 illustrated in FIG. 1 c can provide computerexecutable instructions to hardware such as CPU 105 b through a systembus 105 d in order to (i) receive a message from the module 101 and (ii)send a response, wherein the message can include sensor 101 f data andthe response can include an acknowledgement of the message and/or aninstruction to the module 101. The module controller 105 x can enablethe server 105 to send a response to a message from module 101 byrecording data associated with module 101 in memory such as RAM 105 e,where the data can include an instruction from module 101, a destinationIP:port number, a packet or packet header value, and the data can beprocessed using an encryption or ciphering algorithm or key, a digitalsignature algorithm or key, etc.

The application interface 105 i can enable (a) the server 105 to send adatagram, packet, response to a module 101, or an application message toan application server 171 (b) recording data associated (i) a withmodule 101 or (ii) other M2M service control information in memory suchas RAM 105 e, where the data can include information from module 101, adestination IP:port number, a packet or packet header value, and theinformation could be processed using an encryption or cipheringalgorithm or key, a digital signature algorithm or key, etc. Theoperating system 105 h or the device driver 105 g can write the datafrom RAM 105 e to a physical interface 105 a using a system bus 105 dand an Ethernet connection in order to send the data via the Internet107 illustrated in FIG. 1 a. Alternatively, the software program 105 iand/or module controller 105 x can write the data directly to thephysical interface 105 a using the system bus 105 d.

The server 105 can utilize the physical interface 105 a to receive datafrom a module 101 and/or application 171 i using a local area networksuch as Ethernet, although the physical interface 105 a of server 105could also utilize a wireless connection. The server 105 can listen ormonitor for data from the Internet 107 using port number and/or aTCP/UDP socket. The received data from a module 101 can be a messageformatted according to an Internet packet or datagram or series ofdatagrams inside Ethernet packets and include information from a module101 such as, but not limited to, a source IP address and port number, anidentity of the module, sensor data that may be encrypted, and/or adigital signature of the module. The received data from application 171i can comprise a series of datagrams formatted according to InternetProtocol and/or datagrams inside Ethernet packets. The received data ormessage from application 171 i can include information regardingapplication 171 i and/or server 105, such as a source IP address andport number associated with application 171 i and/or application server171, an identity of the server, actuator instructions or commands for amodule 101 that may be encrypted, and a digital signature associatedwith the application 171 i.

When server 105 receives messages or data, the operating system 105 h ordevice driver 105 g can record the received data from module 101 orapplication 171 i via physical interface 105 a into memory such as RAM105 e. The application interface 105 i or operating system 105 h maysubsequently access the memory in order to process the data received.The application interface 105 i and/or module controller 105 x, oroperating system 105 h can include steps to process the data recorded inmemory and received from the module 101 or application 171 i, such as,but not limited to, parsing the received packet, decrypting data,verifying a digital signature with a key, or decoding sensor dataincluded in a message from the module.

The server 105 and/or application interface 105 i may communicate withapplication 171 i by sending and receiving packets over a LAN or theInternet 107, using a physical interface 105 a and a wired connectionsuch as Ethernet or possibly a wireless connection as well. The server105 can use the physical interface 105 a such as an Ethernet connectionto send and receive the data from the Internet 107. For those skilled inthe art, other steps are possible as well for an application interface105 i or operating system 105 h within a server 105 to (i) send/receivea packet or message to/from a module 101 and (ii) send/receive a packetor message to/from an application 171 i without departing from the scopeof the present invention. Application interface 105 i and modulecontroller 105 x may optionally be combined within a server 105, oralternatively distributed across different physical computers andfunction in a coordinated manner using a network.

The device drivers 105 g, operating systems 105 h, and/or modulecontroller 105 x could also optionally be combined into an integratedsystem for providing the server 105 functionality. Although a singlephysical interface 105 a, device-driver set 105 g, operating system 105h, module controller 105 x, application interface 105 i, and userinterface 105 j are illustrated in FIG. 1 c for server 105, server 105may contain multiple physical interfaces, device drivers, operatingsystems, software programs, module programs, and/or user interfaces.Server 105 may operate in a distributed environment, such that multiplecomputers operate in conjunction through a network to provide thefunctionality of server 105. Also, server 105 may operate in a“virtualized” environment, where server 105 shares physical resourcessuch as a physical CPU 105 b with other processes operating on the samecomputer. And other arrangements could be used as well, withoutdeparting from the invention.

FIG. 1 d

FIG. 1 d is a graphical illustration of hardware, firmware, and softwarecomponents for an application server, in accordance with exemplaryembodiments. Application server 171 can include application 171 i.Application 171 i can comprise a computer program or collection ofcomputer programs, for managing a plurality of modules 101 using one ormore servers 105, including a set of servers 105 n illustrated in FIG. 1h below. Application 171 i can include a web portal 171 j, servicecontroller 171 x, an application database 171 k, and cryptographicalgorithms 141. During operation, such as when application 171 iprocesses data from/to modules 101 through server 105, application 171 imay reside in RAM 171 e within an application server 171. Application171 i and the associated computer programs may be recorded in storage171 m so that they may be loaded by operating system 171 h upon thestartup of application server 171. Web portal 171 j can comprise a webserver such as, but not limited to, Apache and can provide a userinterface for a remote user accessing application 171 i via an Internet107. The web portal 171 j could include web pages for viewing reportsfrom modules 101 and/or servers 105, and also inputting settings formodules 101 by a user. The web pages could include PHP, active serverpages, or Java components, in addition to other elements. Data input andstored by application 171 i can be recorded in application database 171k. The data could be inserted or queried using structured query language(SQL) statements. Cryptographic algorithms 141 are depicted anddescribed in connection with FIG. 1 g below.

Application 171 i may be processed by an application server 171 using aCPU 171 b. The illustrated components for the application server 171 inFIG. 1 d include a central processing unit (CPU) 171 b, a random accessmemory (RAM) 171 e, a system bus 171 d, storage 171 m, an operatingsystem 171 h, and an application 171 i. These elements can providefunctions equivalent to the central processing unit (CPU) 105 b, RAM 105e, system bus 105 d, storage 105 m, and an operating system 105 hdescribed above in FIG. 1 c, respectively. Application server 171 cancomprise a general purpose computer such as, but not limited to, a rackmounted server within a data center or rack, or could also comprise adesktop computer or laptop. Application server 171 could also be aspecialized computer, with hardware and software selected for supportinga plurality of servers 105 or modules 101 connecting and communicatingsimultaneously. Operating system 171 h can comprise an operating systemappropriate for a server such as, but not limited to, Linux, Solaris®,or Windows® Server. Application server 171 can preferably have a wiredEthernet connection with high bandwidth that is persistently connectedto the Internet 107.

An application 171 i and/or service controller 171 x may be anapplication programmed in a language such as, but not limited to, C,C++, Java, or Python and could provide functionality to support M2Mapplications such as, but not limited to, remote monitoring of sensorsand remote activation of actuators. Application 171 i can include aservice controller 171 x. Application 171 i and/or service controller171 x could also be a software routine, subroutine, linked library, orsoftware module, according to one preferred embodiment. Application 171i can include a service controller 171 x, which can provide thefunctionality or CPU 171 b instructions for the service controller 171 xdescribed in the present invention. Service controller 171 x can include(i) logic for processing alarms from a module 101 (such as, but notlimited to, sending out and email or text message to a user), (ii) logicfor adjusting actuator 101 y settings based upon data from sensor 101 f,(iii) accepting user input (possibly via web portal 171 j) and thenmaking an associated change in an actuator 101 y setting. Servicecontroller 171 x can also accept input from external applications (notshown) in order to make decisions regarding module 101, sensor 101 f,and/or actuator 101 y.

Service controller 171 x could be included within an enterprise resourceplanning (ERP) solution such as, but not limited to, SAP® or Oracle®ERP. An external application (not shown) can communicate with theapplication server 171. As one example, a group of modules 101 could beinstalled within a manufacturing plant, and when a customer order wasentered into the external application such as ERP, the servicecontroller 171 x could provide instructions for a group of modules 101to server 105, such as, but not limited to, changing actuators 101 y tooperate a production line. Other possibilities for service controller171 x exist as well without departing from the scope of the presentinvention. In general, service controller 171 x can manage the overallfunction of a group of modules 101 through server 105. Servicecontroller 171 x may operate at the “user layer” and/or “applicationlayer” of the traditional OSI model.

Many of the logical steps for operation of application server 171 orapplication 171 i can be performed in software by various combinationsof physical interface 171 a, device driver 171 g, operating system 171h, and module controller 105 i, where application 171 i communicateswith module controller 105 i over a network. Application 171 i andmodule controller 105 i can communicate using an application message 701(illustrated in FIG. 7 below). When application 171 i is describedherein as performing various actions such as, but not limited to,acquiring an IP address, monitoring a port, transmitting or sending apacket or message, or encrypting or signing a message, receiving apacket or message, specifying herein that application 171 i and/orapplication server 171 performs an action can refer to software,hardware, and/or firmware operating within application server 171performing the action. Application server 171 or application 171 i cansend or transmit a message, packet, or data using the steps depicted anddescribed in connection with FIG. 1 c for a server 105 to send ortransmit a message, packet, or data. Application server 171 orapplication 171 i can receive a message, packet, or data using the stepsdepicted and described in connection with FIG. 1 c for a server 105 toreceive a message, packet, or data. Application server 171 can utilizehardware components similar to server 105, such as storage 171 m can besimilar to storage 105 m, CPU 171 b can be similar to CPU 105 b, andphysical interface 171 a can be similar to physical interface 105 a.Application server 171 can use a system bus 171 d to connect thehardware components shown within application server 171, and system bus171 d can be similar to system bus 105 d depicted and described inconnection with FIG. 1 c above.

Application server 171 may also comprise a collection of individualcomputers, where the individual computers could be either centrallylocated or geographically dispersed, but the individual computers mayfunction in a coordinated manner over a network to operate as anapplication server 171. In a similar manner, application 171 i may bedistributed across a plurality of computers, such as, but not limitedto, in a cloud computing configuration. Application server 171 may be a“virtualized” server, with computing resources shared with otherprocesses operating on a computer.

FIG. 1 e

FIG. 1 e is a graphical illustration of components within a module, inaccordance with exemplary embodiments. FIG. 1 e is illustrated to show acombination of components useful for leveraging the efficient and securecommunication techniques described in the present invention. In additionto the components illustrated in FIG. 1 b above, module 101 can includea battery 101 k, a server public key 114, a wireless module private key112, a connection to an actuator 101 y, a USB interface 101 v, a CPUwake controller 101 u, a flash memory 101 w, a symmetric key 127, apre-shared secret key 129 a, a random number generator 128,cryptographic algorithms 141, a radio 101 z, and other componentsillustrated in FIG. 1 e. Not all of the components illustrated in FIG. 1e are required for many exemplary embodiments, and some of thecomponents illustrated in FIG. 1 e may also be optionally omitted inexemplary embodiments.

The CPU 101 b can comprise a general purpose processor appropriate forthe low power consumption requirements of a module 101, and may alsofunction as a microcontroller. A CPU 101 b and a CPU wake controller 101u are depicted and described in connection with FIG. 1 b of U.S. patentapplication Ser. No. 14/055,606, filed Oct. 16, 2013 in the name of JohnNix, entitled “Systems and Methods for ‘Machine-to-Machine’ (M2M)Communications Between Modules, Servers, and an Application using PublicKey Infrastructure (PKI),” which is hereby incorporated by reference inits entirety.

Sensor 101 f could be a device to collect environmental data or dataregarding a monitored unit 119. Sensor 101 f could collect data such as,but not limited to, temperature, humidity, pressure, visible lightlevels, radiation, shock and/or vibration, voltage, current, weight, pHlevels, orientation/motion, or the presence of specific chemicals.Sensor 101 f could also be a microphone. Sensor 101 f could be amagnetic strip reader for credit cards and similar cards, or an antennafor either near-field RF communications, such as, but not limited to,reading an RF identity tag. An antenna for a sensor 101 f could alsocollect longer-range RF signals, such as, but not limited to, readinglong-range radio frequency identity tags. Sensor 101 f could alsocollect biometric data such as, but not limited to, heart rate, glucoselevels, body temperature, or other health measurements and in this casemonitored unit 119 could be a person. The sensor 101 f can provide datato the CPU 101 b in the form of analog or digital data, which can becommunicated via a system bus 101 d or physical interface 101 a andother electrical interfaces are possible as well. A sensor measurementcan comprise the analog or digital data collected by CPU 101 b fromsensor 101 f. A sensor measurement can include processing of the analogor digital data input CPU 101 b by sensor 101 f, such as, but notlimited to, averaging over time, using mathematic formulas to convertthe raw data from sensor 101 f into a usable form. Module 101 may alsocollect sensor data or sensor values using a sensor 101 f and CPU 101 b,where the data or values are derived from electrical signals output by asensor 101 f. A sensor measurement can comprise the sensor data orsensor values. If module 101 comprises a “point of presence” paymentterminal, then a sensor measurement could comprise data read from apayment card.

As contemplated herein, the terms “sensor measurement” and “sensor data”can be used interchangeably, and can also be considered functionallyequivalent. Although a single sensor 101 f is shown in FIG. 1 e, amodule 101 could include multiple sensors. Each of the multiple sensors101 f could include a sensor identity 151, which could comprise a numberor string to identify the sensor 101 f. A sensor 101 f could be externalto module 101, and also a plurality of sensors 101 f may be used andthey also can connect to module 101 when module 101 uses radio 101 z asa base station for a WiFi network. An exemplary embodiment where sensor101 f connects to module 101 using a radio 101 z is also depicted anddescribed in connection with FIG. 1 e of U.S. patent application Ser.No. 14/055,606, filed Oct. 16, 2013 in the name of John Nix, which ishereby incorporated by reference in its entirety.

Actuator 101 y could be a device to control a parameter or state for amonitored unit 119, such as, but not limited to, changing a voltage orcurrent, activating a switch or relay, turning on or off a microphone orspeaker, activating or deactivating a light, and other examples are wellknown in the art. Actuator 101 y could also be a speaker. Actuator 101 ycould be controlled by module 101 via a digital or analog output fromCPU 101 b, which could also be transmitted or sent via system bus 101 dor a physical interface 101 a. Although actuator 101 y is illustrated asexternal to wireless module 101 in FIG. 1 e, actuator 101 y could alsobe internal to module 101, and module 101 could include multipleactuators 101 y. The use of multiple actuators 101 y each with anactuator identity 152 is also depicted and described in connection withFIG. 1 e of U.S. patent application Ser. No. 14/055,606, filed Oct. 16,2013 in the name of John Nix, which is hereby incorporated by referencein its entirety. Sensors and actuators are well known to those ofordinary skill in the art, and thus are not described in additionaldetail herein.

Module 101 can include a Universal Serial Bus (USB) interface. Inaccordance with an exemplary embodiment, module 101 can comprise awireless module and include a radio 101 z. Note that the use of a radio101 z is not required for module 101, which could also obtain aconnection to the Internet 107 via a wired line such as Ethernet.Although not illustrated, radio 101 z could include antennas forreception and transmission of RF signals, and even multiple antennascould be used. Although a single radio 101 z is illustrated in module101, module 101 could also contain multiple radios 101 z. Radio 101 zcan support wireless LAN standards such as, but not limited to, WiFi,Bluetooth, and Zigbee, or similar wireless LAN standards. Radio 101 zillustrated in FIG. 1 e can comprise a radio 101 z depicted anddescribed in connection with FIG. 1 d of U.S. patent application Ser.No. 14/039,401, filed Sep. 27, 2013 in the name of John Nix, thecontents of which are herein incorporated in their entirety.

Note that module 101 may also operate as a base station in a wirelessLAN, such as, but not limited to, an 802.11 base station. When module101 operates a wireless LAN, radio 101 z can function as either aclient/node and/or a base station 103 to support communication fromother wireless nodes in physical proximity, such as, but not limited to,other nodes within an exemplary 50 meters. The other wireless nodescould comprise a sensor 101 f and/or actuator 101 y, and in this case asensor could be referred to as a “networked sensor” and an actuatorcould be referred to as a “networked actuator”. Radio 101 z functioningas a base station is depicted and described as a base station 103 isdepicted and described in connection with FIG. 1 d of U.S. patentapplication Ser. No. 14/039,401, filed Sep. 27, 2013 in the name of JohnNix, the contents of which are herein incorporated in their entirety.

In accordance with exemplary embodiments, module 101 can store moduleprivate key 112, server public key 114, and module identity 110, and asymmetric key 127 in memory/RAM 101 e during operation, such as when CPU101 b is active and the module 101 is connected to a network such as awireless network 102 during data transmissions. Module private key 112preferably is recorded in nonvolatile memory such as, but not limitedto, flash memory 101 w, so that module 101 has access to its private key112 after the private key has been derived or loaded, including timeswhen a battery 101 k has been fully drained or removed from module 101(if module 101 does not utilize a persistent power source such asland-line power).

Symmetric key 127 can be a secure, shared private key for use withsymmetric encryption or symmetric ciphering algorithms 141 b (in FIG. 1g below). Symmetric key 127 can be derived by using module public key111 and/or server public key 114, possibly through the use of a keyderivation function 141 f (described in FIG. 1 g below). Symmetric key127 can be used for both encryption and decryption with symmetriccryptographic algorithms 141 b described in FIG. 1 g below, where ashared secret key can be used to encrypt/cipher and/or decrypt/decipher.Symmetric key 127 may also include an expiration time 133, such thatsymmetric key 127 may only be used by module 101 and/or server 105during a limited period of time, such symmetric key 127 remaining onlyvalid for a day, or a week, or during a session (where the sessioncomprises multiple messages and/or responses between a module 101 and aserver 105), etc. Module 101 can also derive symmetric key 127 accordingthe Elliptic Curve Integrated Encryption Scheme (ECIES) and/or ECDH 159,discussed in FIG. 1 g below, using module public key 111, server publickey 114, and a random number 128 a from random number generator 128.ECIES could be included in cryptographic algorithms 141. A summary ofECIES shared key derivation is described the Wikipedia article“Integrated Encryption Scheme” from Sep. 18, 2013 (herein incorporatedby reference). Other possibilities for shared key derivation functionusing public keys are possible as well, including a Diffie-Hellman keyexchange. Using a derived symmetric key from the exemplary keyderivation function ECIES, module 101 and/or server 105 could derive asecond symmetric key 127 after the expiration time 133 of the firstsymmetric key 127 had transpired. As contemplated herein, a symmetrickey 127 can also comprise a session key, or the use of a “session key”with a symmetric ciphering algorithm 141 b can comprise a symmetric key127.

Note that a key derivation function 141 f using public keys is notrequired to generate a shared symmetric key 127, and alternatively ashared symmetric key 127 could be generated by any of module 101, server105, module provider 109, M2M service provider 108, or applicationserver 171. If module 101 generates shared symmetric key 127 forsymmetric ciphering 141 b within a cryptographic algorithms 141, thenmodule 101 can send shared symmetric key 127 to server 105 using anasymmetric ciphering depicted and described in connection with FIG. 4below. In accordance with a preferred exemplary embodiment, module 101preferably uses a random number generator 128 to generate a randomnumber 128 a (illustrated in FIG. 1 g) for input into cryptographicalgorithms 141, and the seed 129 in random number generator 128 couldutilize data from a sensor 101 f in order to generate a random number128 a with high entropy in the creation of symmetric key 127. Randomnumber generator 128 and random number 128 a are also depicted anddescribed in connection with FIG. 1 d of U.S. patent application Ser.No. 14/039,401, filed Sep. 27, 2013 in the name of John Nix, thecontents of which are herein incorporated in their entirety.

Module identity 110 is preferably a unique identifier of module 101, andcould comprise a number or string such as, but not limited to, a serialnumber, an international mobile subscriber identity number (IMSI),international mobile equipment identity (IMEI), or an Ethernet mediaaccess control (MAC) address. According to an exemplary embodiment,module identity 110 can also comprise a serial number or string that iswritten into hardware of module 101 upon manufacturing or distributionof module 101. In this case, module identity 110 could be recorded in aread only memory 101 c, where read only memory 101 c could not be easilyerased or otherwise tampered with. Read only memory 101 c could alsocomprise a protected memory. Or, module 101 could read module identity110, which could be written into hardware by a manufacturer,distributor, or module provider 109, by using a device driver 101 g thatreads a hardware address containing the module identity 110 using thesystem bus 101 d. Module 101 can read the module identity 110 byaccessing a read-only address using the bus 101 d. In either case, inone embodiment module identity 110 may preferably be permanently orpersistently associated with the physical hardware of module 101, whichcan be helpful for the security procedures contemplated herein. Moduleidentity 110 can function as a basic identifier for services from M2Mservice provider 108, server 105, and/or application 171 i in order toproperly identify module 101 among a plurality of modules. Moduleprivate key 112 and module public key 111 could be unique to module 101and uniquely associated with module identity 110, according to apreferred embodiment.

As contemplated herein, a module identity 110 can also have more thanone use. A first module identity 110 could comprise a serial number forthe physical hardware of module 101, as described in the paragraphabove. A second module identity 110 could also comprise a sessionidentifier, for data sessions between module 101 and server 105, wherethe session identifier can be uniquely associated by a server 105 tomodule 101. In the case where module identity 110 has more than one use,format, or representation, the module identity 110 associated with orwritten into hardware of module 101 (and potentially read from aread-only address in module 101) would preferably comprise the moduleidentity 110 used in a certificate 122. Since a module 101 may utilizemultiple module public keys 111 and module private keys 112 over itslifetime, a certificate 122 for module 101 can preferably include both(i) the module identity 110 (such as, but not limited to, a serialnumber for the physical hardware of module 101) and (ii) a module publickey identity 111 a in order to specify the particular module public key111 associated with certificate 122. The use of a module public keyidentity 111 a in a certificate 122 is also depicted and described inconnection with FIG. 1 h of U.S. patent application Ser. No. 14/055,606,filed Oct. 16, 2013 in the name of John Nix. Since a module 101 may alsohave multiple public keys 111 for different purposes (such as, but notlimited to, one for creating digital signatures, another for asymmetricciphering, another for use with a second wireless network 102, etc.),then module 101 may also potentially have multiple valid certificates122 concurrently each with different module public key identities 111 a.

Further, as contemplated herein, a module identity 110 could alsocomprise more than one physical string or number, such as, but notlimited to, a first string when module 101 connects with a first M2Mservice provider 108 or first wireless network 102, and module identity110 could comprise a second string when module 101 connects with asecond M2M service provider 108 or second wireless network 102. Thefirst M2M service provider 108 or first wireless network 102 may have afirst requirement or specification for the format, length, structure,etc. of module identity 110, and the second M2M service provider 108 orsecond wireless network 102 may have a second requirement orspecification for the format, length, structure, etc. of module identity110.

Server public key 114 in module 101 could be obtained from downloadingthe key over the Internet 107, or optionally also written intononvolatile memory of module 101 upon manufacture or distribution.Server public key 114 could be obtained using a domain name or Internetaddress that is recorded in nonvolatile memory upon the configuration ofmodule 101, such as, but not limited to, during installation ordistribution, and module 101 could fetch the server public key 114 uponconnecting to a wireless network 102 or other connection to the Internet107.

Module 101 may also contain cryptographic algorithms 141, which maycomprise a suite of algorithms or subroutines that can be utilized for(i) deriving a pair of keys comprising a public key and a private key,(ii) encrypting data using public keys, (iii) decrypting data usingprivate keys, (iv) processing secure hash signatures using private keys,and (v) verifying secure hash signatures using public keys, and relatedsoftware, firmware, or subroutines for implementing a cryptographicsystem, including symmetric ciphering algorithms. Cryptographicalgorithms 141 (also described below in FIG. 1 g) could utilize publiclyavailable software libraries within tools such as, but not limited to,OpenSSL maintained by The OpenSSL Project, libgcrypt maintained by TheFree Software Foundation, and similar libraries such as, but not limitedto, libmcrypt and Crypto++. Note that cryptographic algorithms 141 couldalso use proprietary cryptographic libraries as well. In addition toimplementing asymmetric encryption/ciphering, such as, but not limitedto, used with RSA and ECC cryptography, cryptographic algorithms 141 canprovide symmetric ciphering where a shared private key is utilized toboth encrypt and decrypt, such as, but not limited to, with the AdvancedEncryption Standard (AES) cipher suite.

As illustrated in FIG. 1 e, module 101 may also contain a random numbergenerator 128. Random number generator 128 may contain a seed 129. Thecreation of random numbers with a high degree of entropy may beimportant the use of cryptographic algorithms 141. A plurality of thedata as a source for a random number seed 129 could be appended togetherinto a “module random seed file” 139 (illustrated in FIG. 1 g) with acombined series or list of states (i.e. a plurality of sensor 101 fmeasurements, radio 101 z measurements, clock times, memory 101 e ormemory 101 w states, operating system 101 h states, actuator 101 ystates, and/or hardware 101 a or 101 d states). Note that values or datafor each of the elements listed in the previous sentence could beutilized in a “module random seed file” 139 instead of or in addition toa state. The “module random seed file” is also depicted and described inconnection with FIG. 1e of U.S. patent application Ser. No. 14/055,606,filed Oct. 16, 2013 in the name of John Nix, which is herebyincorporated by reference in its entirety

Note that the term “public key” as contemplated herein includes a keythat may be shared with other elements, where the other elements may notbe under the direct control of the same entity that holds thecorresponding private key. However, the term “public key” as used hereindoes not require that the public key is made available to the generalpublic or is publicly disclosed. An additional layer of security may bemaintained in the present invention by preferably only sharing publickeys on a confidential basis with other entities. For example, modulepublic key 111 may be created by module 101 when generating moduleprivate key 112, and module 101 may share module public key 111 with M2Mservice provider 108 in order to record module public key 111 in server105, but module 101 could choose to not share module public key 111 withother entities, such as wireless network 102 or provide a certificate122 with module public key 111 publicly available on the Internet 107.The benefits of confidentially sharing module public key 111 with server105 are also further described below.

Although a single public key and private key for (i) module 101 and (ii)server 105 are illustrated in FIG. 1 e and also FIG. 1 f below,respectively, both module 101 and server 105 may each utilize severaldifferent pairs of public keys and private keys. As one example, module101 may record a first private key 112 used for creating a digitalsignature and a second private key 112 for decryption using asymmetricciphering algorithms 141 a. In this example, a server 105 could utilizea first module public key 111 to verify the digital signature, and asecond module public key 111 could be utilized to encrypt messages sentto module 101. Similarly, either module 101 or server 105 may useprivate key 112 or 105 c, respectively, to derive secondary shared keyssuch as, but not limited to, a derived shared key 129 b below. Thus, onekey pair could be used with digital signatures, a second key pair usedfor asymmetric ciphering, and a third key pair to derive shared secretkeys. Each of the three illustrated pairs of keys could comprise a setof keys, and each of the illustrated pairs of keys could also use adifferent set of cryptographic parameters 126 (illustrated in FIG. 1 gbelow), although the cryptographic parameters 126 for the various pairsof keys could also be the same.

In addition, module 101 could utilize a first set of keys to communicatewith a first server 105 and a second set of keys to communicate with asecond server 105. The first set of keys could use or be associated witha first set of cryptographic parameters 126 and the second set of keyscould use or be associated with a second set of cryptographic parameters126. According to exemplary embodiments, module 101 may also include apre-shared secret key 129 a. Pre-shared secret key 129 a can comprise asecret key that is shared between module 101 and server 105 beforemodule 101 begins (i) communicating with server 105 and/or a certificateauthority 118, (ii) or utilizing PKI-based encryption and authenticationto communicate with M2M service provider 108. As illustrated in FIG. 1 fbelow, server 105 could also record the pre-shared secret key 129 a, anda pre-shared secret key 129 a can be associated with each module 101using a module identity 110. A pre-shared secret key 129 a is alsodepicted and described in connection with U.S. patent application Ser.No. 14/055,606, filed Oct. 16, 2013 in the name of John Nix, which ishereby incorporated by reference in its entirety. In an exemplaryembodiment, once the pre-shared secret key 129 a has been utilized toauthenticate or verify a module public key 111 with a server 105 (suchas, but not limited to, using subsequent steps 517 in FIG. 5 b below),then that particular pre-shared secret key 129 a may be “discarded” andnot used again for security purposes contemplated herein.

Note that the use of a pre-shared secret key 129 a and pre-shared secretkey code 134 is also optional, such that a module program 101 i couldcipher of obfuscate the initial submission of a derived module publickey 111 and module identity to a server 105, so that server 105 could bereasonably assured only a valid module 101 submitted the module publickey 111. According to a preferred exemplary embodiment, module 101 canderive its own module private key 112 and module public key 111, andutilize pre-shared secret key 129 a in order to securely and/orauthoritatively communicate the derived module public key 111 withserver 105 and/or a certificate authority 118. The use of pre-sharedsecret key 129 a can be particularly useful if module 101 has alreadybeen deployed with a monitored unit 119 and connects to server 105though the Internet 107 for the very first time. Server 105 couldpreferably utilize pre-shared secret key 129 a in order to confirm thata received module public key 111 and module identity 110 from module 101authoritatively belong to module 101, as opposed to being anunauthorized or even fraudulent submission of module public key 111 andmodule identity 110.

Server 105 could utilize a pre-shared secret key 129 a and the stepsdepicted and described in connection with FIG. 4 below in order tosecurely receive module public key 111 and module identity 110 frommodule 101, including the first time module 101 sends module public key111 to server 105. As one example, pre-shared secret key 129 a could beutilized as a symmetric ciphering 141 b key, described in FIG. 1 gbelow. After the first submission of module public key 111 to server105, any subsequent submissions of new module public keys 111 derived bymodule 101 could either (i) continue to use the pre-shared secret key129 a, or (ii) use a symmetric key 127 derived after the first modulepublic key 111 has been received. Securing the submission of modulepublic key 111 with server 105, including both the first submission andsubsequent submissions, is also depicted and described in connectionwith FIG. 5 b below.

FIG. 1 f

FIG. 1 f is a graphical illustration of components within a server, inaccordance with exemplary embodiments. Server 105 can include a moduledatabase 105 k, a sub-server 105 w, and a message preprocessor 105 y. Inan exemplary embodiment, the elements illustrated within a server 105 inFIG. 1 f may be stored in volatile memory such as RAM 105 e, and/orstorage 105 m, and may also be accessible to a processor CPU 105 b. Inanother exemplary embodiment, the module database 105 k, sub-server 105w, and message processor 105 y can comprise separate computers. Moduledatabase 105 k, sub-server 105 w, and message preprocessor 105 y couldrepresent either different processes or threads operating on a server105, or physically separate computers operating in conjunction over anetwork to perform the functions of a server 105. Since server 105 canpreferably support communications with a plurality of modules 101,server 105 can utilize module database 105 k to store and query dataregarding a plurality of modules 101, monitored units 119, and theoverall M2M service. The server 105 can store a plurality of modulepublic keys 111 associated with a plurality of devices in the moduledatabase 105 k. The server 105 can use the module identity 110 of device101, received in a message such as, but not limited to, a UDP packet, toquery the module database 105 k and select the public key 111 orsymmetric key 127 associated with the module 101.

Although not illustrated in FIG. 1 f, module database 105 k can alsorecord a pre-shared secret key code 134, a set of cryptographicparameters 126, and a module identity 110 for each module 101, alongwith the pre-shared secret key 129 a shown in FIG. 1 f. In addition,although not illustrated in FIG. 1 f, module database 105 k could storea symmetric key 127 for each module 101, if cryptographic algorithms 141utilize a symmetric cipher 141 b such as, but not limited to, AES forcommunication with module 101. Examples of module database 105 k couldinclude MySQL, Oracle®, SQLite, hash tables, distributed hash tables,text files, etc. Module database 105 k could reside within RAM 105 e orstorage 105 m. Server 105 may also record a symmetric key 127, where thesymmetric key 127 can be associated with an expiration time 133.Symmetric key 127 can also be recorded in a module database 105 k or asub-server 105 w.

Message preprocessor 105 y can process incoming packets and route themto an appropriate sub-server 105 w using information contained in anincoming message, such as, but not limited to, a module identity 110, aserver identity 206 illustrated in FIG. 2 below, and/or a destination IPaddress. Message preprocessor 105 y can include rules for processing androuting, such a dropping malformed incoming messages or incomingmessages without correct cryptographic data. Message preprocessor 105 ycould also optionally be combined with a server firewall 124 in order toprovide firewall functionality and security at the network layer.Message preprocessor 105 y may preferably remain “silent” to incomingpackets without proper cryptographic data contained in an incomingmessage, such as, but not limited to, one example of a properlyformatted message 208 illustrated in FIG. 6 a below.

Sub-server 105 w can include a server private key 105 c andcryptographic algorithms 141. A plurality of sub-servers 105 w can beutilized by a server 105 in order to support communication with aplurality of modules 101. The server private key 105 c and module publickey 111 can be utilized by server 105 to secure communication withmodule 101, including the steps depicted and described in connectionwith FIG. 4 and FIG. 5 a below. Cryptographic algorithms 141 maycomprise a suite of algorithms or subroutines and are depicted anddescribed in connection with FIG. 1 g.

A first sub-server 105 w can process messages and responses with a firstmodule 101 using a first set of security keys and algorithms, such as,but not limited to, using RSA-based security, and a second sub-server105 w can process messages and responses with a second module 101 usinga second set of security keys and algorithms, such as, but not limitedto, using ECC-based security. Consequently, message pre-processor 105 ycould route incoming messages to the appropriate sub-server 105 wdepending on the encryption algorithm used in the incoming message(which could be determined by message pre-processor 105 y by queryingthe module database 105 k using a module identity 110 in the incomingmessage 208, where module identity 110 can be used to select asub-server 105 w). Sub-servers 105 w may utilize separate server privatekeys 105 c, or the sub-servers 105 w can share a common private key 105c. Sub-servers 105 w may utilize separate cryptographic algorithms 141,or the sub-servers 105 x can share common cryptographic algorithms 141.Although separate sub-servers 105 w are illustrated in FIG. 1 f, thesub-servers may optionally be combined with a server 105, or omitted,with the corresponding server private key 105 c and cryptographicalgorithms 141 stored directly in a server 105.

Server 105 may also comprise a collection of individual computers, wherethe individual computers could be either centrally located orgeographically dispersed, but the individual computers may function in acoordinated manner over a network to operate as a server 105. Server 105may be a “virtualized” server, with computing resources shared withother processes operating on a computer.

FIG. 1 g

FIG. 1 g is a graphical illustration of components in a set ofcryptographic algorithms, in accordance with exemplary embodiments. Ascontemplated herein, communications between (i) a module 101 and aserver 105, and (ii) between application 171 i and server 105 can besecured by using cryptographic algorithms 141. The cryptographicalgorithms 141 used by module 101, server 105, application server 171,and/or application 171 i can comprise a set of steps, procedures, orsoftware routines for accomplishing steps to cipher, decipher, sign, andverify messages, including the generation of public keys, private keys,and derived shared keys. Cryptographic algorithms 141 can be implementedin software operating on (i) module 101 in the form of a module program101 i, (ii) server 105 in the form of a module controller 105 x, or(iii) application server 171 in the form of an application 171 i.Example software for a cryptographic algorithms 141 includes thelibraries within the openssl, libmcrypt, and/or and Crypto++ discussedin FIG. 1 e. Other possibilities for the location of cryptographicalgorithms within a module 101, server 105, or application 171 i existas well, including possibly module operating system 101 h, serveroperating system 105 h, and application server operating system 171 h,respectively.

In addition, cryptographic algorithms 141 may be implemented in hardwareor firmware on any of module 101, server 105, or application 171 i. Notethat module 101, server 105 and application 171 i could each utilize adifferent set of cryptographic algorithms 141, although the sets ofalgorithms should preferably be fully interoperable (i.e. ciphering witha first symmetric ciphering algorithm 141 b and a symmetric key 127 onmodule 101 could be deciphered by a second symmetric ciphering algorithm141 b on server 105 using the symmetric key 127, etc.). As illustratedin FIG. 1 g, cryptographic algorithms 141 may comprise an asymmetricciphering algorithm 141 a, a symmetric ciphering algorithm 141 b, asecure hash algorithm 141 c, a digital signature algorithm 141 d, a keypair generation algorithm 141 e, a key derivation function 141 f, and arandom number generator 128.

Asymmetric ciphering algorithms 141 a can comprise algorithms utilizingpublic key infrastructure (PKI) techniques for both (i) encrypting witha public key and (ii) decrypting with a private key. Example algorithmswithin asymmetric algorithms 141 a include the RSA algorithms 153 andthe Elliptic Curve Cryptography (ECC) algorithms 154, and otherasymmetric algorithms could be utilized as well. For example, either theECC algorithms 154 or RSA algorithms 153 can be used for encryption anddecryption, including (i) encryption step 503 discussed below, as wellas (ii) decryption step 413 discussed below. A set of cryptographicparameters 126 can include input into asymmetric ciphering algorithms141 a, such as, but not limited to, specifying key lengths, ellipticcurves to utilize (if ECC), modulus (if RSA) or other parameters orsettings required. As contemplated herein and described in additionaldetail below, the algorithms illustrated in FIG. 1 g can perform bothciphering and deciphering, using the appropriate keys.

The use and application of RSA algorithms and cryptography are describedwithin IETF RFC 3447 titled “Public-Key Cryptography Standards (PKCS)#1: RSA Cryptography Specifications Version 2.1”, herein incorporated byreference, among other published standards for the use of RSA algorithms153. The use of an RSA algorithm 153 for encryption and decryption,including with cryptographic algorithm and other description ofencryption or decryption algorithms, can also be processed according tothe description of the RSA algorithm according to the Wikipedia entryfor “RSA (algorithm)” as of Sep. 9, 2013, which is incorporated byreference herein.

The use and application of ECC algorithms 154 for asymmetric cipheringalgorithms 141 a within cryptographic algorithms 141 are describedwithin IETF RFC 6090 titled “Fundamental Elliptic Curve CryptographyAlgorithms” (herein incorporated by reference), among other publishedstandards using ECC. ECC algorithms 154 can also utilize elliptic curvecryptography algorithms to the Wikipedia entry for “Elliptic curvecryptography” as of Sep. 9, 2013, which is incorporated by referenceherein. ECC algorithms 154 may utilized according to exemplary preferredembodiments in order to maintain high security with smaller key lengths,compared to RSA, thereby helping to comparably reduce the messagelengths, radio frequency spectrum utilization, and processing powerrequired by module 101. Thus, the use of ECC algorithms 154 withinvarious steps requiring ciphering or digital signatures may helpconserve battery life of module 101 while maintaining the objective ofsecuring system 100. Note that as contemplated herein, other algorithmsbesides with ECC algorithms 154 and RSA algorithms 153 may be also beused in asymmetric algorithms 141 a.

Cryptographic algorithms 141 may also include a set of symmetricciphering algorithms 141 b. Symmetric ciphering algorithms 141 b canutilize a symmetric key 127 by one node such as a module 101 to encryptor cipher data, and the encrypted data can be decrypted or deciphered byserver 105 also using the symmetric key 127. Examples of symmetricciphers include Advanced Encryption Standard 155 (AES), as specified inFederal Information Processing Standards (FIPS) Publication 197, andTriple Data Encryption Standard (Triple DES), as described in NISTSpecial Publication 800-67 Revision 1, “Recommendation for the TripleData Encryption Algorithm (TDEA) Block Cipher (Revised January 2012)”.Cryptographic parameters 126 input into symmetric ciphering algorithms141 b can include symmetric key 127 length, such as, but not limited to,the selection of 128, 192, or 256 bits with AES 155 symmetric ciphering,and cryptographic parameters 126 could also select a symmetric cipheringalgorithm in a collections of symmetric ciphering algorithms 141 b.Other examples of symmetric ciphering algorithms 141 b may be utilizedas well within cryptographic algorithms 141. Also note that ascontemplated herein, the term “symmetric ciphering” contemplates the useof a symmetric ciphering algorithm 141 b in order to encrypt or cipherdata with a symmetric ciphering algorithm 141 b, and “asymmetricciphering” contemplated the use of an asymmetric ciphering algorithm 141a to encrypt or cipher data with a public key, such as module public key111 or server public key 114.

Cryptographic algorithms 141 may also include a set of secure hashalgorithms 141 c in order to compute and output a secure hash value ornumber based on a string or file input into the secure hash algorithms141 c. Example secure hash algorithms include SHA256 156 (also known asSHA-2) and SHA-3 157. SHA256 156 is specified in the National Instituteof Standards and Technology (NIST) Federal Information ProcessingStandards Publication (FIPS PUB) 180-2 titled “Secure Hash Standard”.SHA-3 157 is scheduled to be published in FIPS PUB 180-5. Cryptographicparameters 126 input into secure hash algorithms 141 c can include theselection of the length of the secure hash, such as, but not limited to,using 224, 256, or 512 bits with either SHA-2 or SHA-3, and otherpossibilities exist as well.

Cryptographic algorithms 141 may also include a set of digital signaturealgorithms 141 d, in order to sign and verify messages between (i)module 101 and server 105 or (ii) server 105 and application 171 i.Digital signature algorithms 141 d can also verify signatures such as,but not limited to, comparing that (i) a first secure hash value in theform of a digital signature in a certificate (not shown) using acertificate authority public key matches (ii) a second secure hash valuein the certificate (not shown). Digital signature algorithms 141 d canutilize algorithms in National Institute of Standards (NIST) “FIPS186-4: Digital Signature Standard”, or IETF RFC 6979 titled“Deterministic Usage of the Digital Signature Algorithm (DSA) andElliptic Curve Digital Signature Algorithm (ECDSA)”. The use of ECDSAalgorithm 158 within a set of digital signature algorithms 141 d may bepreferred if keys such as, but not limited to, module public key 111 andserver public key 114 are based on elliptic curve cryptography. OtherPKI standards or proprietary techniques for securely verifying digitalsignatures may be utilized as well in digital signature algorithms 141d. Cryptographic parameters 126 input into digital signature algorithms141 d can include the selection of a secure hash algorithms 141 c toutilize with digital signature algorithms 141 d, or the algorithm toutilize, such as, but not limited to, ECDSA shown or an RSA-basedalternative for digital signatures is possible as well. Cryptographicparameters 126 input into digital signature algorithms 141 d can alsoinclude a padding scheme for use with a digital signature algorithms 141d. Digital signature algorithms 141 d could also include an RSA digitalsignature algorithm for use with RSA-based public and private keys.

Cryptographic algorithms 141 may also include key pair generationalgorithms 141 e, a key derivation function 141 f, and a random numbergenerator 128. Key pair generation algorithms 141 e can be utilized bymodule 101, server 105, or application 171 i to securely generateprivate and public keys. The key pair generation algorithms 141 e canalso use input from a cryptographic parameters 126, such as, but notlimited to, the desired key lengths, or a value for an ECC curve if thepublic key will support ECC algorithms 154. According to an exemplarypreferred embodiment, module 101 can derive a pair of module public key111 and module private key 112 using key pair generation algorithms 141e. Software tools such as, but not limited to, openssl and libcryptinclude libraries for the generation key pairs, and these and similarlibraries can be used in a key pair generation algorithm 141 e.

Key derivation function 141 f can be used by module 101, server 105,and/or application 171 i in order to determine a common derived sharedsecret key 129, using at least two respective public keys as input, andmay also include the input of a private key. A key exchange to share acommon symmetric key 127 can be performed using a key derivationfunction 141 f and cryptographic parameters 126. An exemplary algorithmwithin a key derivation function 141 f can be the Diffie-Hellman keyexchange, which is used by tools such as, but not limited to, securesocket layer (SSL) with RSA algorithms 153. When using ECC algorithms154, module 101 and server 105 can utilize Elliptic Curve Diffie-Hellman(ECDH) algorithms 159, and a summary of ECDH is included in theWikipedia article titled “Elliptic Curve Diffie-Hellman” from Sep. 24,2013, which is herein incorporated by reference. Other algorithms toderive a shared secret key 129 b using public keys and a private key mayalso be utilized in a key derivation function 141 f, such as, but notlimited to, the American National Standards Institute (ANSI) standardX-9.63 160. Cryptographic parameters 126 used with key derivationfunction 141 f with elliptic curve cryptography can include a commonbase point G for two node using the key derivation function 141 f andpublic keys. The base point G in a cryptographic parameters 126 can betransmitted or sent from a module 101 to a server 105 in a message 208,and the base point G can be sent from a server 105 to a module 101 in aresponse 209, and other possibilities exist as well. Cryptographicparameters 126 can also include other or additional information forusing a key derivation function 141 f in order to derive a commonlyshared symmetric key 127.

Cryptographic parameters 126 input into key pair generation algorithms141 e can include the type of asymmetric ciphering algorithms 141 a usedwith the keys, the key length in bits, an elliptic curve utilized forECC, a time-to-live for a public key that is derived, and similarsettings. Additional cryptographic parameters 126 for a public key caninclude a supported point formats extension, where the supported pointformats extension could comprise uncompressed, compressed prime, or“compressed char2” formats, as specified in ANSI X-9.62. In other words,an ECC public key can have several formats and a set of cryptographicparameters 126 can be useful to specify the format. Although a set ofcryptographic parameters 126 is illustrated in FIG. 1 g as internal tocryptographic algorithms 141, parameters 126 could be recorded in otherlocations in a module 101 or a system 100. As one example, a set ofcryptographic parameters 126 could be recorded in a server 105 anddownloaded by module 101 using the Internet 107. The various algorithmswithin cryptographic algorithms 141 may utilize a random numbergenerator 128, which is also depicted and described in connection withFIG. 1 e above. As contemplated herein, the term “cryptographicparameters” 126 may be considered equivalent to a “set of cryptographicparameters” 126, and also use of the terms “parameters” 126 and “set ofparameters” 126 can both refer to the cryptographic parameters 126illustrated in FIG. 1 g.

According to a preferred exemplary embodiment, cryptographic parameters126 can include values to define an elliptic curve and/or use ECCalgorithms 154. A set of ECC parameters 137 could comprise values ornumbers for an elliptic curve defining equation. ECC parameters 137 arealso depicted and described in FIG. 1 g of U.S. patent application Ser.No. 14/055,606, filed Oct. 16, 2013 in the name of John Nix, which ishereby incorporated by reference in its entirety. Cryptographicparameters 126 could also include an ECC standard curve 138, which couldcomprise a name and/or values for a standardized curve, such as, but notlimited to, the list of named curves included in section 5.1.1 of IETFRFC 4492 titled “Elliptic Curve Cryptography (ECC) Cipher Suites forTransport Layer Security (TLS).”

As contemplated herein, a set of cryptographic algorithms 141 mayoperate using either strings or numbers, and cryptographic parameters126 could include either strings or numbers as well. As contemplatedherein (i) a collection, sequence, and/or series of numbers couldcomprise a string, (ii) a string can include a mixture of numbers andcharacters, or (iii) a string can comprise a collection, sequence,and/or series of characters. The processing of cryptographic algorithmswithin a module 101 can take place within a CPU 101 b, or module 101could also process cryptographic algorithms in a cryptographicprocessing unit (not shown) connected to the system bus 101 d. Accordingto an exemplary embodiment, a module 101 or a server 105 could include acryptographic processing unit (not shown) separate from the CPU 101 b orCPU 105 b in order to increase efficiency for supporting the use ofcryptography through a system 100. Alternatively, in exemplaryembodiments cryptographic algorithms 141 can be implemented entirely insoftware within a module 101 and/or server 105, and also utilized by amodule controller 101 x and application interface 101 i.

FIG. 1 h

FIG. 1 h is a graphical illustration of an exemplary system thatincludes a user, an application, a set of servers, and a set of modules,in accordance with exemplary embodiments. System 199 illustrated in FIG.1 h can include a user 183, an application 171 i, a set of servers 105,and a set of modules 101, which can communicate as illustrated using theInternet 107. Each of a server A 105 and server B 105 and additionalservers can communicate with a plurality of modules. An application 171i can communicate with a plurality of servers 105. Although the servers105 and application 171 i in system 100 in FIG. 1 i are illustrated asbeing separate, application 171 i and server 105 may optionally becombined into a single node, such that the application 171 i and server105 operate as separate processes or programs on the same computer, oron a computer operating in a distributed environment such as, but notlimited to, a cloud configuration. In addition, even though a singleapplication 171 i and a single user 183 are illustrated in FIG. 1 i, asystem 199 could include multiple applications 171 i and multiple users183. In exemplary embodiments, application server 171 and/or application171 i can communicate with multiple servers 105 using the multiplesecure connection data transfer 802 links illustrated in FIG. 1 h. Asecure connection data transfer 802 is depicted and described inconnection with FIG. 8 below. In addition, in exemplary embodiments, afirst server A 105 can communicate with a second server B 105 also byusing a secure connection data transfer 802.

As illustrated in FIG. 1 h, a first server A 105 and a second server B105 could also share a module database 105 k, such that informationrecorded in a module database 105 k by the first server A 105 could beaccessible to or queried by a second server B 105. The connectionbetween the servers and the module database 105 k could also be througha secure connection data transfer 802 which is depicted and described inconnection with FIG. 8. In this manner and as contemplated herein, amodule database 105 k can comprise a shared module database 105 k. Otherconfigurations are possible as well without departing from the scope ofthe present invention for using a shared module database 105 k. Inanother embodiment a shared module database 105 k could be combined withapplication server 171 or shared module database 105 k could comprise adistributed hash table. In exemplary embodiments, a system 199 couldalso include a plurality of shared module databases 105 k, wherein theshared module databases 105 k could be either (i) be periodicallysynchronized, or (ii) record separate information for a system 199. Ashared module database 105 k could also comprise a plurality of separatemodule databases 105 k, such that different information may be recordedin each module database 105 k. With the use of separate module databases105 k, a first module database 105 k could record data associated with afirst module 101, and a second module database could record dataassociated with a second module 101. A server 105 could access each ofthe first module database 105 k and the second module database 105 k,possibly through a secure connection data transfer 802, in order tosupport communication with a plurality of modules 101.

User 183 can comprise an individual, business manager, network engineer,systems administrator, other employee with functional responsibilitiesfor a system 199 (or components within a system 199 or system 100)accessing application 171 i using a computer with a user interface suchas, but not limited to, a web browser 183 a. Application 171 i couldalso send an email or text message to user 183 if an alarm condition isdetected in system 199, such as, but not limited to, if a sensor 101 fmeasurement exceeds a prescribed threshold value. The web browser 183 acould use a connection 184 to access a web portal 171 j operating onapplication 171 i. Connection 184 could include hypertext markuplanguage (HTML) messages, and could be through a secure connection suchas, but not limited to, TLS or IPsec, although other possibilities existas well to those of ordinary skill in the art. Any module 101, such as,but not limited to, module 101 A, could use the Internet 107 andestablish a primary connection 181 with server 105 A, and also module101 A could establish a backup connection 182 with server 105 B if theprimary connection 181 is not available. Alternatively, any module 101,such as, but not limited to, module 101 A, could communicate with morethan one server 105 concurrently or in sequence, such that module 101 Acommunicates with both server A 105 and server B 105. According toexemplary embodiments, during an active state between periods of sleepor being dormant, module 101 may communicate with more than one server105, such as, but not limited to, a first server A 105 and a secondserver B 105. Other possibilities for a plurality of modules 101 tocommunicate with a plurality of servers 105 exist without departing fromthe scope of the present invention.

As contemplated herein a system 199 and other systems illustrated inadditional Figures can include a set of servers 105 n, and the exemplarysystem illustrated in system 199 includes at least two servers 105 inthe set of servers 105 n. Other servers besides a server 105 can beincluded in a set of servers 105 n, such as, but not limited to, sharedmodule database 105 k which could operate on separate computers than aserver 105. Other possibilities exist as well for the number of servers105 in a set of servers 105 n. In another embodiment, the set of servers105 n could comprise a single server 105. Thus, a set of servers 105 ncan include from one to many servers 105.

FIG. 2

FIG. 2 is a graphical illustration of an exemplary system, where amodule sends a message to a server, and where the server responds to themessage, in accordance with exemplary embodiments. Module 101 asdepicted and described in FIG. 2 can operate as a wireless module 101,although a wired connection to the Internet 107 could alternatively beutilized. System 100 as illustrated in FIG. 2 includes RF signals 201,module IP address 202, port number 203, module IP:port 204, server portnumber 205, server ID 206, server IP:port number 207, message 208,response 209, wireless network firewall address 210, and firewall portbinding packet 211. Many of the elements illustrated within system 100in FIG. 2 are also depicted and described in connection with FIG. 2 ofU.S. patent application Ser. No. 14/039,401 (the contents of which arehereby incorporated by reference in their entirety). As contemplatedherein, a wireless module 101 can comprise a module 101, or in otherwords a wireless module 101 may be a module 101 that is wireless.Functions described as being performed by a wireless module 101 may alsobe performed by a wired module 101 (where connection to a wired networkwould be used instead of connection to a wireless network 102). Also ascontemplated herein and illustrated in FIG. 2, the wording “module 101sends a message 208” can also be considered equivalent to “server 105receives a message 208”. Likewise, the wording “server 105 sends aresponse 209” can be considered equivalent to “module 101 receives aresponse 209”.

A wireless module 101 can wake from a dormant state in order perform (i)remote and automated monitoring and (ii) control functions such as, butnot limited to, collecting a sensor 101 f measurement, communicatingwith server 105, and controlling an actuator 101 y. If module 101 isconnected to land-line power or a long-lasting external power sourcesuch solar power, then module 101 may remain in an active state andbypass a dormant state, although transmitting RF signals 201 maypreferably only be utilized when communicating with wireless network 102or sending data to and receiving data from server 105. The wirelessmodule can acquire an IP address 202 from the wireless network 102. IPaddress 202 is illustrated as being an IPv6 address, but IP address 202could also be an IPv4 address.

In order to transmit or send data from wireless module 101 to server105, a wireless module 101 can use module program 101 i to collect datafrom a sensor 101 f in order to update server 105. Module program 101 ican request a port number 203 from operating system 101 h in order tohave a source IP:port for sending data using IP protocols such as, butnot limited to, TCP and UDP. The terminology “IP:port” as describedherein refers to combining an IP address with a port number. Wirelessmodule IP address 202 and port number 203 can be combined to formIP:port number 204. IP:port number 204 can be utilized as a sourceIP:port number for packets transmitted from wireless module 101, as wellas a destination IP:port number for packets received by wireless module101, when communicating with server 105.

In order to utilize Internet 107, module 101 may also need a destinationIP address and port number in order to send packets to server 105.Before sending data to server 105, wireless module 101 preferablyretrieves server IP address 106 and server port number 205 from RAM 101e. Server IP address 106 could be recorded in RAM 101 e via (i) a DNSquery using server name 206 or (ii) queries to M2M service provider 108or wireless network 102. CPU 101 b may copy server IP address 106 andserver port number 205 from nonvolatile memory into volatile memory suchas, but not limited to, a register for processing to send a packet toserver 105. Server name 206 could also be a server identity. (A) ServerIP address 106 or server name 206 and (B) server port number 205 couldbe recorded in a nonvolatile memory such as, but not limited to, flashmemory 101 w so that wireless module 101 can store the properdestination of packets transmitted or sent even when wireless module isdormant or shutdown, which avoids the processing and bandwidthrequirements of obtaining server IP address 106 and server port number205 every time the wireless module 101 wakes from the dormant orshutdown state. Server IP address 106 and server port number 205 can becombined into a server IP:port number 207.

After collecting data from a sensor, module 101 can send a packet fromIP:port 204 to IP:port 207, and the packet could comprise a message 208that may include the data from a sensor 101 f. Note that message 208does not need to include sensor data, and message could potentially be aperiodic registration message or keep-alive message. As contemplatedherein, the term “sensor measurement” can refer to data associated withor derived from a sensor 101 f. A sensor measurement, can comprise astring containing data regarding a parameter of a monitored unit 119 andcollected by a sensor 101 f. The sensor measurement as sent in a message208 can also represent a string (alphanumeric, binary, text,hexadecimal, etc.), where the string comprises a transformation orprocessing of sensor data collected by a CPU 101 b, such includingformatting, compressing, or encrypting, encoding, etc. of sensor data. A“sensor measurement” could comprise a plurality of data from a sensor101 f.

In order to minimize bandwidth and time required for RF signals 201 tobe active, module 101 can send the message 208 as a single UDP datagramin accordance with a preferred exemplary embodiment. The single UDPdatagram in this embodiment can preferably be the only packet sent frommodule 101 to server 105 or M2M service provider 108 during a wake statefor the module 101 when the radio 101 z is active and transmitting, suchas, but not limited to, in a radio resource control (RRC) connectedstate. In other words, according to this preferred exemplary embodiment,the message 208 sent by module 101 can preferably be the only message orpacket sent by the wireless module to the server 105 between dormantperiods of module 101. By sending message 208 as a single UDP datagram,both a battery 101 k is conserved and utilization of valuable RFspectrum is reduced. Message 208 could also comprise a series ofassociated UDP messages.

Also, as contemplated herein, message 208 could comprise a relatedseries of packets, so that message 208 could comprise multipledatagrams. As one example, if TCP is utilized as the transport protocolfor message 208, then the series of TCP messages including the initialhandshake, one or more packets of payload data, and the closing of theconnection could together comprise message 208. As another example, ifUDP or UDP Lite is utilized for the transport protocol, and payload dataexceeds a maximum transmission unit (MTU) size for the UDP packet andthe payload data is spread across multiple packets, then the multiplepackets would comprise a message 208. Further, a related series ofpackets comprising a message 208 could be identified by using the samesource IP:port number as either (i) received by server 105 or (ii) sentby module 101. In addition, a related series of packets comprising afirst message 208 could be identified as a series of packets sent bymodule 101 before receiving a response 209 from a server, and packetssent after receiving a response 209 could comprise a second message 208.Other possibilities for a message 208 to comprise multiple packets ordatagrams may exist without departing from the scope of the presentinvention.

The UDP datagram for message 208 could also be formatted according tothe UDP Lite protocol, as specified in IETF RFC 3828, which is alsoincorporated by reference herein. The term “UDP Lite” described in thepresent invention may also refer to any connectionless protocol widelysupported on Internet 107 where checksums may be partially disabled,thereby supporting the transfer of bit errors within a datagram. Theadvantages of UDP over TCP is that UDP can be quickly sent, while TCPrequires a “handshake” with the server which requires more time andbandwidth, which would utilize more energy from battery 101 k. Accordingto an exemplary embodiment, both message 208 and response 209 can be TCPmessages. In this exemplary embodiment, message 208 and response 209could each comprise a series of TCP messages that can include a TCP SYN,SYN ACK, ACK, ACK w/data, FIN ACK, etc.

According to an exemplary embodiment, module 101 sends (and server 105receives) the same sensor data in multiple copies of the same UDPpacket. Each of the multiple copies of the same UDP packet can alsooptionally be formatted according to the UDP Lite protocol. As oneexample, wireless module sends three identical copies of the UDP or UDPLite packet that include the same sensor data. The benefit of sendingthree copies of UDP Lite include (i) the RF signals 201 received by thebase station 103 could include bit errors, which could result in aregular (RFC 768) UDP packet being dropped, since a bit error couldresult in a UDP checksum mismatch, as received and processed by wirelessnetwork 102. Note that the use of checksums is mandatory in IPv6, andthus checksums cannot be fully disabled in IPv6. With UDP Lite packetstransmitted by wireless module 101, where the mandatory checksum forIPv6 can cover the packet header, wireless network 102 can forward allpackets received, potentially including bit errors, to server 105 overthe Internet 107.

Server 105 can receive the multiple copies of the UDP or UDP Litepackets, which could include bit errors received, and server 105 couldcompare or combine the multiple copies or each individual UDP Litepacket in order to remove bit errors. Note that UDP Lite is notrequired, and wireless module 101 could send the message 208 using asingle UDP packet, or multiple copies of a regular UDP (i.e. non UDPLite) packet. However, using UDP Lite with multiple packets sent canprovide benefits such as if the sensor data is encrypted in the packet,then a single bit error would normally break the receiver's ability todecipher the data using a cryptographic key, unless the encrypted datawas channel coded and the channel coding could recover from the biterror in order to present an error-free input of the encrypted data to adeciphering algorithm.

Further, between periods of sleep when a wireless module 101 becomesactive and transmits RF signals 201, module 101, which may also comprisea wireless module 101, could send the sensor data in a single UDP Litepacket where the packet includes channel coding, which can also bereferred to forward error correction. Forward error correction couldalso be implemented by sending multiple copies of the same UDP packet.Note that since large segments of message 208 could include encrypted orhashed data, those segments may not be appropriate for compression sincethe data is often similar to random strings which are not readilycompressed. Channel coding techniques for the data in message 208 couldinclude block codes and convolution codes. Block codes could includeReed-Solomon, Golay, BCH, Hamming, and turbo codes. According to apreferred exemplary embodiment, data within message 208 is sent as a UDPLite packet using a turbo code to correct multiple bit errors within apacket or datagram sent by module 101 and received by server 105.

In system 100 illustrated in FIG. 2, server 105 can use IP:port 207 toreceive the packet from wireless module 101 and sent from source IP:port204 to IP:port 207, and the packet could comprise a message 208 that mayinclude the data from a sensor associated with module 101 or monitoredunit 119. As contemplated herein, a message 208 illustrated in FIG. 2does not need to include sensor data and other data could be transmittedor sent, such as, but not limited to, a server instruction 414(described in FIG. 4 below), or other data pertaining to module 101 or amonitored unit 119. Note that server 105 can use IP:port 207 to receivea plurality of messages 208 from a plurality of wireless modules 101.Server 105 preferably listens for UDP packets on IP:port 207 or monitorsIP:port 207, although TCP packets could be supported as well. If server105 receives multiple copies of the same UDP packet from module 101,server 105 preferably includes a timer to drop duplicate packetsreceived outside a timer window such as, but not limited to, anexemplary 5 seconds.

After receiving the message 208 and processing the message according tothe techniques described below such as, but not limited to, in FIG. 4,server 105 can send a response 209. Since module 101 may belong to awireless network 102 which includes a firewall 104, the source IP:portof the message 208 received by server 105 could be different from thesource IP:port 204 utilized by wireless module 101. The source IP:portin message 208 could be changed if firewall 104 performs network addresstranslation (NAT), as one example. Server 105 may not readily know if aNAT translation has been performed on the message 208. Alternatively,firewall 104 may not perform NAT, but could still block data from theInternet 107 which does not properly match the firewall rules. As oneexample, firewall 104 could be a symmetric firewall (but without NATfunctionality), where only packets from IP:port 207 to IP:port 204 areallowed to pass the firewall after message 208 has been sent by module101.

In either case, where firewall 104 may or may not perform NAT routing,server 105 preferably sends the response 209 from the server IP:port 207to the source IP:port it receives in message 208. According to apreferred exemplary embodiment, response 209 is a UDP packet sent fromserver 105 with (i) a source IP:port 207 and (ii) a destination IP:portequal to the source IP:port received in message 208, as illustrated inpacket 209 a. The example use of source and destination IP:ports inmessage 208 and response 209 are also illustrated in FIG. 6 a below. Inthis manner, the UDP packet can traverse a firewall 104, if firewall 104is present. If firewall 104 is present and performs NAT routing, thenfirewall 104 can receive the response 209 and change the destination IPaddress and port within response 209 to equal IP:port 204.

According to exemplary preferred embodiments, module 101 may also obtainpower from a land-line source, such as, but not limited to, atraditional 120 volt wall socket, or possibly power over Ethernet, andother non-transient power sources could be utilized as well. In thiscase, module 101 may remain persistently connected to the Internetthrough either a wireless network 102 or a wired connection such as, butnot limited to, Ethernet. In other words, module 101 may omit enteringperiods of sleep or dormancy where inbound packets from the Internetwould not be received due to the sleep state of module 101. Consequentlyin an exemplary embodiment, module 101, which does not sleep for periodslonger than a minute, may preferably periodically send a firewall portbinding packet 211 from IP:port 204 to IP:port 207 in order to keepports and addresses within a firewall 104 and/or firewall 124 open tocommunications between module 101 and server 105. Firewall port bindingpacket 211 can comprise a packet that is sent periodically using a timerinterval that is shorter than the port-binding timeout period 117 on afirewall 104 and firewall 124.

Continuing with this exemplary embodiment where module 101 does notsleep for periods longer than approximately one minute, if UDP isutilized for message 208 and response 209, then a small UDP packetcomprising firewall port binding packet 211 can be sent periodicallysuch as, but not limited to, every 45 seconds. If TCP is utilized formessage 208 and response 209, then a small TCP packet comprisingfirewall port binding packet 211 can be sent periodically such as, butnot limited to, every 4 minutes. Other possibilities for the timing ofsending firewall port binding packet 211 are possible as well. Bysending firewall port binding packet 211 periodically, server 105 cansend module 101 a response 209, (i) which could include a moduleinstruction 502 as explained in FIG. 5 a, at (ii) time intervals betweenmessage 208 and response 209 that are longer than the firewall portbinding timeout values 117 of firewall 104 and/or firewall 124. Withoutfirewall port binding packet 211, if (A) a response 209 sent from server105 at an exemplary 180 seconds after receiving message 208, such as,but not limited to, after a firewall port binding timeout value 117 offirewall 104 of an exemplary 60 seconds transpired, then (B) response209 would be dropped by firewall 104 and the response 209 would not bereceived by module 101.

FIG. 3

FIG. 3 is a flow chart illustrating exemplary steps for a server toreceive a message from a module, in accordance with exemplaryembodiments. As illustrated in FIG. 3, FIG. 3 can include steps used bya module controller 105 x in a server 105 as illustrated in FIG. 1 c.The processes and operations, including steps for module controller 105x, described below with respect to all of the logic flow diagrams mayinclude the manipulation of signals by a processor and the maintenanceof these signals within data structures resident in one or more memorystorage devices. For the purposes of this discussion, a process can begenerally conceived to be a sequence of computer-executed steps leadingto a desired result.

These steps usually require physical manipulations of physicalquantities. Usually, though not necessarily, these quantities take theform of electrical, magnetic, or optical signals capable of beingstored, transferred, combined, compared, or otherwise manipulated. It isconvention for those skilled in the art to refer to representations ofthese signals as bits, bytes, words, information, elements, symbols,characters, numbers, points, data, entries, objects, images, files, orthe like. It should be kept in mind, however, that these and similarterms are associated with appropriate physical quantities for computeroperations, and that these terms are merely conventional labels appliedto physical quantities that exist within and during operation of thecomputer.

It should also be understood that manipulations within the computer areoften referred to in terms such as listing, creating, adding,calculating, comparing, moving, receiving, determining, configuring,identifying, populating, loading, performing, executing, storing etc.that are often associated with manual operations performed by a humanoperator. The operations described herein can be machine operationsperformed in conjunction with various input provided by a human operatoror user that interacts with the computer.

In addition, it should be understood that the programs, processes,methods, etc. described herein are not related or limited to anyparticular computer or apparatus. Rather, various types of generalpurpose machines may be used with the following process in accordancewith the teachings described herein. The present invention may comprisea computer program or hardware or a combination thereof which embodiesthe functions described herein and illustrated in the appended flowcharts. However, it should be apparent that there could be manydifferent ways of implementing the invention in computer programming orhardware design, and the invention should not be construed as limited toany one set of computer program instructions.

Further, a skilled programmer would be able to write such a computerprogram or identify the appropriate hardware circuits to implement thedisclosed invention without difficulty based on the flow charts andassociated description in the application text, for example. Therefore,disclosure of a particular set of program code instructions or detailedhardware devices is not considered necessary for an adequateunderstanding of how to make and use the invention. The inventivefunctionality of the claimed computer implemented processes will beexplained in more detail in the following description in conjunctionwith the remaining Figures illustrating other process flows. Further,certain steps in the processes or process flow described in all of thelogic flow diagrams below must naturally precede others for the presentinvention to function as described. However, the present invention isnot limited to the order of the steps described if such order orsequence does not alter the functionality of the present invention. Thatis, it is recognized that some steps may be performed before, after, orin parallel other steps without departing from the scope and spirit ofthe present invention.

The processes, operations, and steps performed by the hardware andsoftware described in this document usually include the manipulation ofsignals by a CPU or remote server and the maintenance of these signalswithin data structures resident in one or more of the local or remotememory storage devices. Such data structures impose a physicalorganization upon the collection of data stored within a memory storagedevice and represent specific electrical or magnetic elements. Thesesymbolic representations are the means used by those skilled in the artof computer programming and computer construction to most effectivelyconvey teachings and discoveries to others skilled in the art.

At step 311, the server 105 can record a module public key 111, or aplurality of module keys 111 in a module database 105 k. The modulepublic key 111 could be received in a message 208 according to steps 516and 517, including authenticating the message 208, as depicted anddescribed in connection with FIG. 5 b below. Module public key 111 couldalso be recorded at step 311 before module 101 connects to the Internet107 the very first time, and in this case module public key 111 could berecorded in server 105 by M2M service provider 108 or module provider109. At step 312, the server 105 can open a TCP/UDP socket associatedwith an IP:port number 207 and listen or monitor for incoming messagefrom modules. At step 313, server 105 can receive a message 208 sent bymodule 101, using the IP:port number 207. Although not illustrated inFIG. 3, upon the first communication from module 101 by server 105 wherethe communication could include step 313, according to an exemplaryembodiment, module 101 can also send a certificate 122 to server 105,where certificate 122 would normally include module public key 111 andmodule identity 110. Server 105 could utilize a certificate 122 toverify a module identity 110, as described in FIG. 4 below at step 412.

An exemplary format of message 208 is depicted and described inconnection with FIG. 6 a below, and other possibilities for a message208 exist as well. Although not illustrated in FIG. 3, after receivingmessage 208 at step 313, server 105 may also process any channel codingpresent in message 208 in order to eliminate any bit errors received.The channel coding could be included in a message 208 that utilizes theUDP Lite protocol in an exemplary embodiment. At step 314, server 105can decrypt a message 208 using a cryptographic algorithm 141 and one of(i) server private key 105 c, or (ii) a symmetric key 127. Additionaldetails regarding step 314 are depicted and described in connection withFIG. 4 below. At step 315, server 105 can verify that message 208 wassent by module 101 using a module identity 110, module public key 111,and a cryptographic algorithm 141, including verifying a module digitalsignature 405 discussed in FIG. 4 below. Additional details regardingstep 315 are depicted and described in connection with FIG. 4 below.Note that step 315 can take place before step 314 if the module identity110 and/or a digital signature is not encrypted within message 208 (i.e.a sensor measurement in message 208 could be encrypted but a moduleidentity 110 or digital signature may not be encrypted). Step 315 mayoptionally be omitted, if a symmetric key 127 is used to cipher datawithin message 208, such that a module digital signature from module 101was previously verified when the symmetric key 127 was implemented.

After verifying the identity of module 101 in step 315, at step 316server 105 can record sensor data or sensor measurements within message208 in a module database 105 k, if message 208 has a sensor measurement.Note that message 208 may not have a sensor measurement, and in thiscase step 316 can be skipped, or message 208 may also include other databesides a sensor measurement. Sensor data recorded in module database105 k can be made available for subsequent processing by server 105 orother servers or applications associated with an M2M service provider108 in order to manage the function and operation of module 101 ormonitored unit 119. As illustrated in FIG. 7 through FIG. 9, receivedsensor data could also be forwarded by server 105 to an applicationserver 171. Although not illustrated in FIG. 3, in an exemplaryembodiment at step 316 server 105 could alternatively forward the sensordata to application 171 i instead of recording the data in moduledatabase 105 k.

After receiving message 208, server 105 can process a response 209 atstep 317 a. Step 317 a can comprise encrypting an instruction, where theinstruction could include an acknowledgement of the message received, acommand or setting for an actuator, and/or another control message formodule 101. Server 105 can utilize a module public key 111 andcryptographic algorithms 141 in order to encrypt the instruction. Step317 b can comprise creating a digital signature for the response 209using the server private key 105 c and cryptographic algorithms 141.

Additional details regarding steps 317 a and 317 b are depicted anddescribed in connection with FIG. 5 a below. Note that step 317 a and/orstep 317 b may optionally be omitted, such that response 209 istransmitted without encryption and/or a signature, and security could beobtained through other means, such as through firewalls 104 and 124, orusing a secured network link between module 101 and server 105, such as,but not limited to, setting up a virtual private network (VPN) or SSHtunnel between the two endpoints. These alternative means for securityat the network layer would likely require additional bandwidth and powerconsumption for a module 101 and thus may not be adequately efficient.As one example, if module 101 is a wireless module that sleeps forrelatively long periods such as, but not limited to, every hour (andobtains a new IP address for every wake period), setting up a new VPNbetween module 101 and server 105 in order to receive send a messagefrom module 101 may not be practical due to the extra drain on a battery101 k for re-establishing the VPN. Or, only portions of steps 317 a and317 b could be used, such that a response 209 (or a message 208 receivedin step 313) is not encrypted but a digital signature is used in theresponse 209 (or message 208).

After completing steps 317 a and 317 b, at step 209 a, server 105 cansend response 209 from (a) the source port utilized to receive message208 to (b) a destination IP:port. The destination IP:port can comprisethe source IP:port in message 208 as received by server 105, and thedestination IP:port can represent the external interface of a firewall104. In other words, server 105 may send response 209 from serverIP:port 207 to the source IP:port received in message 208, which couldrepresent the source IP:port on a wireless network firewall 104, whereinthe source IP:port on the wireless network firewall 104 contains thefirewall IP address 210. The wireless network firewall 104 could forwardthe response 209 to module IP:port 204. As contemplated herein, server105 can send response 209 as soon as practical after receiving message208, and in any case response 209 should be sent before the expirationof a firewall port binding timeout value 117 associated with firewall104. According to a preferred exemplary embodiment, response 209 is sentby server 105 within no more than 5 seconds of receiving message 208.After completing step 209 a as illustrated in FIG. 3 b, server 105 canreturn to step 312 and listen for or monitor for additional incomingmessages 208 from modules 101.

FIG. 4

FIG. 4 is a flow chart illustrating exemplary steps for a server toprocess a message, including verifying a module's identity anddecrypting data, in accordance with exemplary embodiments. The stepsillustrated in FIG. 4 may comprise step 315 and step 316 illustrated inFIG. 3 above. Server 105 can receive message 208 using IP:port 207, asillustrated in FIG. 2. Message 208 can be formatted according to the UDPprotocol or UDP Lite protocol, although other possibilities exist aswell without departing from the scope of the present invention

At step 407, server 105 can process the packet using the appropriatetransport layer protocol, such as, but not limited to, UDP. In this step407, the body of the packet comprising message 208 can be extracted, anda checksum, if any, can be calculated to verify the integrity. Note thatif the UDP Lite protocol is utilized, the checksum may optionally onlyapply to the packet header. At step 408, server 105 can remove channelcoding, if present in message 208. Channel coding techniques utilized instep 408 could include block codes and convolution codes, and can usethe same channel coding algorithms used in channel coding algorithmsimplemented by module 101, depicted and described in connection withFIG. 5 a below. By processing channel coding in step 408, server 105 cancorrect potential bit errors received in message 208, although channelcoding 408 may be optionally omitted. As noted above, the use of channelcoding 408 can be preferred in an embodiment, since any bit errorsreceived within module encrypted data 403 in message 208 could break (i)a cryptographic algorithms 141 used by server 105 at subsequent steps413, and/or (ii) the verification of module digital signature 405 atstep 410 below.

At step 409, the server 105 can read and record the module identity 110,if module 110 is included in message 208 as external to module encrypteddata 403 as illustrated in an exemplary message 208 in FIG. 6 a below.Although not illustrated in FIG. 4, server 105 can select a modulepublic key 111 for module 101 by querying a module database 105 k withmodule identity 110. Module identity 110 could comprise a string orsession identifier, whereby server 105 could derive or track a moduleidentity 110 from one message 208 to the next message 208 using thestring or session identifier. By including module identity 110 in amessage 208, but external to module encrypted data 403 such as, but notlimited to, illustrated in FIG. 6 a below, a server 105 can utilizemodule identity 110 in order to select a server private key 105 c orsymmetric key 127 for decrypting module encrypted data 403. According toan exemplary embodiment, a plurality of server private keys 105 c couldbe utilized, where a first private key 105 c is used with a first set ofmodules 101 and a second private key 105 c is used with a second set ofmodules 101. The first and second private keys 105 c could use or beassociated with different sets of parameters 126. By reading the moduleidentity 110 outside of module encrypted data 403, the module identity110 can be read before decryption, in order to identify which of thefirst or second set server private keys 105 c that a module 101 sendingmessage 208 is associated with, and thus server 105 can subsequentlyselect the first or second set of server private keys 105 c to use whendecrypting module encrypted data 403.

Alternatively according to an exemplary embodiment, if server 105operates in a distributed environment (such as, but not limited to,comprising multiple sub-servers 105 w as illustrated in FIG. 1 f), anunencrypted module identity 110, including a possibly a sessionidentifier for module identity 110 within a message 208, can be utilizedby a message preprocessor 105 y to select the appropriate sub-server 105w to process the message 208. Server 105 using message preprocessor 105y could forward the message 208 to the correct sub-server 105 w. At step410, server 105 can validate and verify the module identity 110 usingthe module digital signature 405 inserted by module 101 in message 208.Module digital signature 405 can comprise a secure hash signature ortag, where module 101 generated the hash signature using the moduleprivate key 112 and digital signature algorithms 141 d. As one example,server 105 can utilize the module public key 111 recorded in memory 105e to securely validate the module digital signature 405 receive in amessage 208.

The module digital signature 405 can be verified according to public keyinfrastructure (PKI) standards such as, but not limited to, the NationalInstitute of Standards (NIST) “FIPS 186-4: Digital Signature Standard”,or IETF RFC 6979 titled “Deterministic Usage of the Digital SignatureAlgorithm (DSA) and Elliptic Curve Digital Signature Algorithm (ECDSA)”.Other PKI standards or proprietary techniques for securely verifying amodule digital signature 405 may be utilized as well. If message 208comprises an initial communication from module 101, at step 412 server105 can verify that module public key 111 is associated with moduleidentity 110 using a module certificate 122, where certificate 122includes a signature 123 from a certificate authority 118, asillustrated in FIG. 1 h of U.S. patent application Ser. No. 14/055,606,filed Oct. 16, 2013 in the name of John Nix. Server 105 could receivecertificate 122 before module 101 sends message 208, or server 105 couldquery module 101 or another server for certificate 122 after receivingmessage 208. Server 105 could use digital signature algorithms 141 d tocompare a secure hash calculated using (i) a first certificate 122and/or public key from module 101 and (ii) a second certificate and/orpublic key from certificate authority 118 or another server, in order toconfirm that module public key 111 is associated with module identity110, where module identity 110 was read from message 208 in step 409.The secure hash could also be calculated using module public key 111 anda public key from certificate authority 118, and other possibilitiesusing PKI exist as well for server 105 to confirm module public key 111is associated with module identity 110 at step 412.

In an exemplary embodiment, if (A) module encrypted data 403 includesmodule identity 110 and/or module digital signature 405, then (B) steps409 and/or 410 may also take place after step 413, where server 105 (i)first decrypts module encrypted data 403 and can then (ii) verify moduleidentity 110 by performing steps 409 and 410 after step 413. If moduleencrypted data 403 utilizes a symmetric cipher 141 b, then a moduleidentity 110 can preferably be external to module encrypted data 403 sothat server 105 can select the appropriate symmetric key 127 used bymodule 101 in order to decipher module encrypted data 403 (since aplurality of modules 101 may communicate with server 105 concurrently).

After verifying module digital signature 405 in step 410, server 105 canrecord an authenticated module encrypted data 403 from module 101received in message 208. At step 413, server 105 can decrypt moduleencrypted data 403 using cryptographic algorithms 141 and either (i)server private key 105 c as a decryption key with asymmetric ciphering141 a or (ii) symmetric key 127 with symmetric ciphering 141 b. Asymmetric key 127 may be stored in a module database 105 k, as noted inFIG. 1 f above. If a symmetric key 127 is used at step 413, thesymmetric key 127 could be (i) sent by server 105 in a response 209 or(ii) received by server 105 in a prior message 208, before the message208 illustrated in FIG. 4 was received by server 105.

With an asymmetric ciphering 141 a scheme used in a module encrypteddata 403 and by cryptographic algorithms 141 at step 413, server 105 candecrypt module encrypted data 403 using (i) server private key 105 c and(ii) RSA algorithms 153, elliptic curve cryptography (ECC) algorithms154, or other algorithms for public key cryptography. The use andapplication of RSA algorithms 153 and cryptography are described withinIETF RFC 3447, among other published standards. The use and applicationof ECC cryptography and algorithms are described within IETF RFC 6637,among other published standards. ECC algorithms 154 may be preferred inorder to maintain high security with smaller key lengths, compared toRSA, in order to minimize the message lengths, radio frequency spectrumutilization, and processing power or energy required by module 101. Notethat module encrypted data 403 may also include a security token 401(not shown in FIG. 4, but shown in FIG. 5 a), which could comprise arandom string, and thus each module encrypted data 403 received byserver 105 in message 208 may be reasonably considered unique and thusrobust against replay attacks.

With a symmetric ciphering 141 b scheme used in a module encrypted data403 and by cryptographic algorithms 141 at step 413, server 105 candecrypt module encrypted data 403 using (i) symmetric key 127 and (ii) asymmetric cipher 141 b such as, but not limited to, AES 155, Triple DES,or similar secure symmetric ciphers. As one example, by using ECCcryptography and ECIES, server 105 could decrypt module encrypted dataat step 413 by using the steps outlined in FIG. 3, titled “ECIESEncryption Functional Diagram” in “A Survey of the Elliptic CurveIntegrated Encryption Scheme” by Martinez et al in the Journal ofComputer Science and Engineering, Volume 2, August 2010, page 11,(herein incorporated by reference). Other possibilities exist as wellwithout departing from the scope of the present invention. Server 105can utilize step 413 illustrated in FIG. 4 to extract the plaintext, ordecrypted data within module encrypted data 403.

After decrypting module encrypted data 403, server 105 can read theresulting data within message 208, which could comprise a serverinstruction 414. The server instruction 414 can represent the purpose ofthe message 208 for server 105. Server instruction 414 could comprise aplurality of different procedures for server 105, such as, but notlimited to, an “update” with sensor data, a “query” for data orinstructions from server 105 or M2M service provide 108, a“notification” of state or condition at module 101 such as, but notlimited to, an alarm or error, a “configuration request” where module101 seeks configuration parameters, a “software request” where module101 request updated software or routines, a “registration” message wheremodule 101 periodically registers with server 105, etc. Thus, serverinstruction 414 can comprise the purpose module 101 sends message 208.In addition, server instruction 414 could comprise a “confirmation”,where module 101 sends a “confirmation” in a second message 208 afterreceipt of a response 209, where response 209 could include a moduleinstruction 502 (below), and the “confirmation” in this second message208 could signal server 105 that the module instruction 502 had beenproperly executed.

As examples for server instruction 414, an “update” could be used toperiodically notify server 105 of regular, periodic sensor data 305acquired by a sensor 101 f. An “update” for server instruction 414 mayalso comprise a periodic report regarding monitored unit 119 orinformation regarding a state, condition, or level for an actuator 101y. A “query” for server instruction 414 could comprise module 101querying server 105 for data from a module database 105 k, where thedata could be associated with monitored unit 119, wireless network 102,an element within module 101 such as, but not limited to, an actuatorsetting. A “notification” for server instruction 414 could comprisemodule 101 notifying server 105 that an alarm or error condition hasoccurred, such as, but not limited to, a sensor measurement exceeds athreshold value or another error condition such as, but not limited to,loss of contact with monitored unit 119. A “configuration request” forserver instruction 414 could comprise module 101 requesting server 105for configuration parameters or a configuration file. Otherpossibilities for server instruction 414 exist without departing fromthe scope of the present invention.

At step 415, server 105 can process the server instruction 414. Ifserver instruction 414 comprises an “update”, then sensor data, or otherdata in server instruction 414 including potentially a new symmetric key127 generated by module 101, could be recorded in module database 105 k,Other applications may subsequently access the sensor data forgenerating reports or making decisions regarding monitored unit 119. Ifserver instruction 414 comprises a “query”, then server 105 couldexecute the query at step 415. If server instruction 414 comprises a“notification” of an alarm, then step 415 could initiate procedures foralarm notification to 3^(rd) parties or alarm resolution. Otherpossibilities for processing a server instruction 414 at step 415 existwithout departing from the scope of the present invention.

FIG. 5 a

FIG. 5 a is a flow chart illustrating exemplary steps for a server toprocess a response for a module, including sending and signing a moduleinstruction, in accordance with exemplary embodiments. The stepsillustrated in FIG. 5 a may comprise step 317 a and step 317 billustrated in FIG. 3 above. Since message 208 and response 209 maytraverse the public Internet 107, a module 101 and a server 105 mayprefer to take additional steps to sending plaintext in packets in orderto maintain security of a system 100. Server 105 can process a response209 to a message 208 from module 101 using a module public key 111 and aserver private key 105 c, according to a preferred exemplary embodiment.If a symmetric cipher 141 b is utilized within cryptographic algorithms141, then server 105 may also utilize a symmetric key 127 to encryptdata within a response 209. Note that the security methods describedherein are optional, and message 208 and response 208 can be sentwithout any or all of the additional security steps described herein,but the use of these security steps may be preferred.

After receiving message 208 as illustrated in FIG. 2, server 105 canprepare an acknowledgement 501. The acknowledgement 501 can be a simpletext, binary, or hexadecimal string to confirm that message 208 has beenreceived and/or processed by server 105. Since message 208 may betransmitted via a UDP or UDP Lite packet, module 101 may preferablyutilize a reply message from server 105 containing acknowledgement 501,in order to confirm message 208 has been received by server 105.Alternatively, if TCP is used to transmit message 208, anacknowledgement 501 may be used at the application layer of the OpenSystems Interconnection (OSI) model, wherein a simple TCP ACK messagemay operate at the lower transport layer than the application layer. UDPmay be preferred over TCP in order to reduce processing resources formodule 101 and server 105, especially considering the relatively smalland comparably infrequent messages sent between a module 101 and aserver 105 (when compared to web browsing and considering module 101 mayhave a battery 101 k that may preferably last for weeks or longerwithout recharging). In processing a response 209, server 105 mayoptionally add a security token 401, which could be a random number 128a, or a randomly generated text, binary, or hexadecimal string. Securitytoken 401 could be a random number 128 a or string that is included inresponse 209 in order to make each response 209 unique and thus avoidany replay attacks when response 209 traverses Internet 107. Note that amessage 208 may also preferably include a security token 401.

In other words, the use of security token 401 can ensure to a high levelof certainty that each response 209 will be different and thus the datawithin response 209 would not be sent more than once. Note that securitytoken 401 may be generated by module 101 in message 208, and in thiscase server 105 can use the same security token received in message 208.Security token 401 can alternatively be generated by server 105 anddifferent than any security token 401 received in message 208. Securitytoken 401 illustrated in FIG. 5 a can be derived or processed by usingmessage 208 in accordance with preferred exemplary embodiments.

Server 105 may also optionally add a module instruction 502 whenpreparing a response 209. The module instruction 502 could be a stringthat contains instructions or configuration parameters for module 101,such as, but not limited to, an order to change state, parametersregarding the monitoring of monitored unit 119, server names oraddresses, radio frequency parameters, wireless network 102authentication parameters or keys, keys for communication with server105 or M2M service provider 108, etc. Module instruction 502 may alsocomprise an instruction to change the state of actuator 101 y, a timervalue, a sensor threshold value, the threshold for an alarm state, andinformation for display at a user interface 101 j, an instruction tosleep, etc. Module instruction 502 may further comprise an updatedmodule private key 112, and updated server public key 114, or theaddress or name of a new server 105 added to M2M service provider 108.According to an exemplary preferred embodiment, a module instruction 502could comprise a “key generation” instruction, where module 101generates a new pair of a module private key 112 and a module public key111, utilizing the exemplary steps and procedures illustrated in FIG. 5b below, including step 515. The “key generation” 608 module instruction502 (illustrated in FIG. 6 a below) could be used to create new keys fora new purpose (such as, but not limited to, connecting to a new wirelessnetwork 102 or communicating with a new server 105), while the existingkeys used to communicate with server 105 could remain operable or bedeprecated at a later time. Alternatively, an existing or previousmodule public key 111 could be deprecated or become invalid once server105 sends a “key generation” module instruction 502.

In order to control module 101, server 105 would normally need toinclude module instruction 502 in the response 209 only after receivingmessage 208, since the server 105 would normally not be able to sendmessages to a module 101 at arbitrary times, such as before a message208 has been received by the server 105. The reasons include (i) themodule may normally be in a sleep or dormant state, in order to conservebattery life or power consumption, where an unsolicited incomingInternet packet from server 105 would not be received by module 101, and(ii) a wireless network 102 (or equivalent wired network that a wiredmodule 101 could connect with) may frequently include a firewall 104.Firewall 104 could prevent packets from the Internet 107 from reachingmodule 101 unless module 101 had previously first sent a packet toserver 105 within a firewall port-binding timeout period 117 of firewall104. The port-binding timeout period of a firewall 104 may be anexemplary period such as, but not limited to, 20-60 seconds for UDPpackets and several minutes for TCP packets. Note that moduleinstruction 502 may optionally be omitted, such that (b) some response209 messages may include module instruction 502, and (b) other response209 messages may omit module instruction 502, but include anacknowledgement 501 to message 208. Also note that according to anexemplary embodiment described herein, the use of optional strings orsteps can be depicted in FIGS. 4 and 5 a through the use of dashed linesfor the various elements illustrated. In other words, the use of dashedlines shows steps that are included in one exemplary embodiment, butexcluded or omitted in another exemplary embodiment.

Server 105 may then use as input the acknowledgement 501, security token401, and module instruction 502, including optional data andcryptographic parameters 126, into cryptographic algorithms 141 at step503. The cryptographic algorithms 141 at step 503 can utilize either (i)module public key 111 as an encryption key if asymmetric ciphering 141 ais utilized, or (ii) a shared symmetric key 127 if a symmetric cipher141 b is utilized, such as, but not limited to, AES 155 ciphering. Theoutput of cryptographic algorithms 141 at step 503, usingacknowledgement 501, security token 401, and module instruction 502,plus optional data and parameters 126, as input, can be server encrypteddata 504, as illustrated in FIG. 5 a. Server encrypted data 504 could bea string or number, including a text, binary, or hexadecimal string orseries of numbers or bits, and other possibilities for the formal ofserver encrypted data 504 exist as well, including a file, withoutdeparting from the scope of the present invention. By using modulepublic key 111 and/or symmetric key 127 in the cryptographic algorithms141 at step 503, server encrypted data 504 may only be reasonablydecrypted by module 101 using module private key 112 and/or symmetrickey 127. Thus the response 209 transmitted across an Internet 107 may bereasonably considered secure and only reasonably decrypted by module101.

Server 105 can then process server encrypted data 504 by appending orincluding server identity 206. Note that server identity 206 can beappended or included after the operation of step 503, since the serveridentity 206 may optionally be openly readable within a response 209transmitted or sent to module 101. As one example, server identity 206could comprise IP address 106 as a source IP address in response 209,which would be openly readable on the Internet 107 since a valid packetmust have a source and destination IP address. Additional details on anexemplary structure of response 209 are illustrated in FIG. 6 a below.By including server identity 206 after encryption at step 503, themodule can read the server identity 206 and verify a digital signaturewithin response 209 without having to first decrypt data within response209 using the module private key 112 or symmetric key 127. Note thatserver identity 206 could alternatively be included within serverencrypted data 504, such that step 505 takes place before step 504. Inother words, including server identity 206 external to a serverencrypted data 504 can be used by module 101 to select the proper serverpublic key 114 when verifying a digital signature in response 209.

Server 105 can then process a server digital signature 506 using theserver private key 105 c. In an exemplary embodiment, the server digitalsignature 506 can be processed according to public key infrastructure(PKI) standards such as, but not limited to, the National Institute ofStandards (NIST) “FIPS 186-4: Digital Signature Standard” (which ishereby incorporated herein by reference), or IETF RFC 6979 titled“Deterministic Usage of the Digital Signature Algorithm (DSA) andElliptic Curve Digital Signature Algorithm (ECDSA)” (which is herebyincorporated herein by reference). In another exemplary embodiment theuse of a server digital signature 506 can be processed according to thedescription of a digital signature according to the Wikipedia entry for“Digital Signature” as of Sep. 9, 2013, which is incorporated byreference herein in its entirety. Also note that other uses of a digitalsignature as contemplated within the present invention may refer to theabove three references and related standard techniques for processingand creating digital signatures. Other PKI methods for securelygenerating a server digital signature 506 may be utilized as well.

According to a preferred exemplary embodiment, ECC algorithms forgenerating server digital signature 506 may be utilized in order tominimize the key length compared to RSA algorithms. Server digitalsignature 506 may comprise a secure hash signature using a hashalgorithm such as, but not limited to, secure hash algorithm 1 (SHA-1),or subsequent standards such as, but not limited to, SHA-2 and SHA-3,and other possibilities exist as well. Server digital signature 506 isillustrated in FIG. 5 a as being processed after server encrypted data504, but server digital signature 506 may also optionally be included inserver encrypted data 504. Step 506 may also take place before step 505.

Also note that server digital signature 506 may preferably be includedin a response 209 before module 101 begins either (i) utilizing asymmetric key 127 shown in step 413 to encrypt a module encrypted data403, or (ii) accept or process a module instruction 502. After includingserver digital signature 506 in a first response 209 that usesasymmetric ciphering 141 a, server 105 may omit server digital signature506 in a second subsequent response. The second subsequent responsecould be a case where (i) server encrypted data 504 utilizes a symmetrickey 127 for ciphering (where server 105 received the symmetric key 127in a message 208 that utilized asymmetric ciphering 141 a as illustratedin FIG. 4 above) and (ii) expiration time 133 of symmetric key 127 hasnot transpired.

FIG. 5 b

FIG. 5 b is a flow chart illustrating exemplary steps for a server tocommunicate with a module that has derived a public key and private key,in accordance with exemplary embodiments. In order to utilizecommunications secured with PKI techniques such as, but not limited to,private keys, public keys, certificates, and identities, a module 101may preferably obtain or generate these keys and utilize a moduleidentity 110 and/or a certificate 122 in a secure manner. Given that aplurality of modules 101 may be deployed in potentially remote places,without frequent contact with end users or technicians, the use ofsecure PKI techniques for a module 101 can create a significant set ofchallenges for the generation of module public key 111 and moduleprivate key 112, as well as properly and securely obtaining acertificate 122 with an module identity 110. Using conventionaltechnology, significant challenges and costs can be incurred when (i)module 101 has already been deployed, such as collecting data from amonitored unit 119, and (ii) module 101 needs to utilize a new set ofmodule private key 112 and module public key 111.

Exemplary embodiments that include derivation or processing of a newmodule private key 112 and module public key 111 may utilize theparticular steps and procedures contemplated herein, in order tominimize any potential human intervention (with related costs) whilecontinuing to maintain or also enhance security, compared either (i)externally generating module private key 112, and/or (ii) continuing touse the same module private key 112 for the lifetime of module 101. Overa long period of operating time for a module 101, such as, but notlimited to, several years or longer, there may be many reasons module101 may need a new pair of PKI keys, such as, but not limited to, (i)expiration of a certificate 122, or the certificate 122 of a parentsignature authority, (ii) the transfer of ownership or control of module101, where the prior ownership could have direct or indirect access tothe module private key 112, (iii) supporting a new server 105 that hasdifferent security requirements or a different set of cryptographicparameters 126 (longer keys, different ECC curves, differentcryptographic algorithms 141, etc.), and/or (iv) revocation of a publickey in a chain of signatures associated with a certificate 122. In thecase of (ii) above, new ownership of module 101 may require a module 101to utilize a new module private key 112 since the old ownership may haveaccess to an old module private key 122. In the case of (iii) above, anew server 105 may require a pair of public/private keys incompatiblewith a prior set of public/private keys utilized by module 101 and/or acertificate 122 for module 101.

Other possibilities exist as well for reasons why a module 101 and/orserver 105 may prefer for a module 101 to utilize a new module publickey 111 and new module private key 112. In an exemplary embodiment,module 101 may generate a new public/private key periodically in orderto enhance the security of a system 100. A benefit of a system 100supporting periodic generation of keys by module 101 is that the keylength can be shortened in order to obtain a similar level of security,and the processing power and energy consumption, possibly from a battery105 k, can be reduced through the use of shorter key lengths. In otherwords, over time such as, but not limited to, several months or years,the use of a plurality of different pairs of public/private keys formodule 101 with shorter key lengths can be both more secure and energyefficient than using a single pair of public/private keys with a longerkey length for the lifetime of module 101. Shorter key lengths may alsobe more compatible with processing power constraints of a module 101.Thus, in exemplary embodiments, module 101 and/or server 105 may preferfor module 101 to periodically generate new public and private keys.

The general approach adopted by most mobile phone networks over the pasttwo decades has been founded upon the use of a pre-shared secret keyrecorded in subscriber identity module (SIM) or UICC cards, such as theKi pre-shared secret key in 2G, 3G, and subsequent networks. Thatapproach may work for mobile phones, where the SIMs can often be easilyreplaced, but the use of a pre-shared secret key in a SIM or UICC maynot be suitable for a module 101 and M2M service provider 108 for manycircumstances. As one example, significant costs may be incurred byswapping out a SIM card for already deployed modules 101, especially ifthey are in remote locations or continually moving such as, but notlimited to, a tracking device on a container, pallet, truck, orautomobile. In an exemplary embodiment, a module 101 may preferablyrecord multiple pairs of public/private keys 111/112 for various anddifferent functions, such as, but not limited to, connecting todifferent servers 105, connecting to different wireless networks 102,etc. As contemplated herein, recording more than one public/private key111/112 can comprise module 101 recording a plurality of pairs of modulepublic keys 111 and module private keys 112. In exemplary embodiments,one pair comprising a first module public key 111 and a first moduleprivate key 112 can be identified or selected from a different paircomprising a second module public key 111 and a second module privatekey 112 using a module public key identity 111 a.

The number of pairs of public/private keys useful to a module 101concurrently could be several, such as, but not limited to, an exemplarythree or more actively used public/private keys, although otherpossibilities exist as well. Manually trying to change or add a new SIMcard each time a new security key is required may not be efficient orfeasible. Or in another exemplary embodiment, the multiple pairs ofprivate and public keys could be used in sequence, such that module 101with server 105 utilizes a single module public key 111 and moduleprivate key 112 at any given point in time. In the case where module 101with a module identity 110 derives or generates more than one moduleprivate key 112 and module public key 111 during the lifetime of module101 and sends the derived module public keys 111 over time to a set ofservers 105 n, this case may be considered a server 105 receiving aseries of module public keys for a module identity 110. The variouspairs in the series may also use either different sets of cryptographicparameters 126 or the same set of cryptographic parameters 126. Theseries of module public keys 111 (with corresponding module private keys112) can be processed by a CPU 101 b with key pair generation algorithms141 e and a random number generator 128. The random number generator 128can use input from a sensor 101 f, a radio 101 z, and/or a temporaryrandom seed file 139.

In exemplary embodiments, module 101 can use a module public key 111 forsending a module encrypted data 403 or receiving a server encrypted data504 by either (i) sending the module public key 111 to a server 105 inorder to allow the module encrypted data 403 to be decrypted (such as,but not limited to, using a step 413) or the server encrypted data 504to be encrypted (such as, but not limited to, using a step 503), or (ii)inputting the module public key 111 into a key derivation function 141 fin order to derive or process a derived shared secret key 129 b, whichcould be used with a symmetric key 127. Other possibilities exist aswell for module 101 to use its own module public key 111 withcryptographic algorithms for communicating with a server 105.

FIG. 5 b illustrates exemplary steps that can be performed with module101, including using a module program 101 i, for generating, deriving,and/or updating a module public key 111 and module private key 112. Thesteps illustrated in FIG. 5 b include both (i) an “initial” or “startup”case where module 101 has not previously derived keys (or keys notinternally derived may not have been loaded), and (ii) a subsequent or“follow on” time where module 101 can generate or derive keys after keyswere initially obtained or derived. Note that efficient and securemethods and systems contemplated herein, including in FIG. 5 b, may alsobe utilized with a regular consumer mobile phone, or smartphone, as amodule 101. Mobile phones as module 101 can benefit from (i) deriving amodule public key 111 and a module private key 112, (ii) sending moduleencrypted data 403 in a message 208 using the derived keys, and (iii)receiving a server encrypted data 504 in a response 209 also using thederived keys. In the exemplary embodiment where module 101 comprises amobile phone, then sensor 101 f may comprise a microphone and actuator101 y may comprise a speaker, and other possibilities exist as well tothose of ordinary skill in the art for module 101 to comprise a mobilephone.

At step 511, during manufacturing of module 101, including manufacturingof sub-components such as, but not limited to, a circuit board, assemblyof hardware components illustrated in FIG. 1 b, etc., a module identity110 could be written into the hardware, and could comprise a serialnumber, International Mobile Equipment Identity (IMEI) number, EthernetMAC address, or a similar persistent identification for a module 101. AnIEMI number may be used with a mobile phone as module 101, in apreferred embodiment. For security purposes, the module identity 110 maypreferably be written into a read-only location or protected location orprotected memory, such as, but not limited to, a readable location on asystem bus 101 d, which could also comprise a ROM 101 c. Recording andutilizing module identity 110 is also depicted and described inconnection with FIG. 1 e, FIG. 2, and elsewhere herein. Alternatively,module identity 110 could be recorded in a non-volatile memory such as,but not limited to, a flash memory 101 w.

At step 512, module 101 can be distributed to end users and alsoinstalled with a monitored unit 119. If module 101 is a mobile phone,then monitored unit 119 could be a person that carries the mobile phone.Also note that a monitored unit 119 could be omitted, and a module 101could use the techniques contemplated herein. At step 513, a sharedsecret key 510, parameters 126, and a server address 207 can be recordedin a nonvolatile memory 101 w. Parameters 126 may comprise settings fora cryptographic algorithms 141 as illustrated in FIG. 1 g, including (i)key lengths, (ii) algorithms to utilize for key generation or ciphering,such as, but not limited to, selecting RSA algorithms 153 or ECCalgorithms 154, (iii) a specific secure hash algorithm 141 c to utilize,such as, but not limited to, SHA-256 or SHA-3, (iv) an expiration dateof the module public key 111, (v) a maximum time value for an expirationtime 133 associated with a symmetric key 127, (vi) a ECC parameters 137or an ECC standard curve 138 as parameters 126 in FIG. 1 h of U.S.patent application Ser. No. 14/055,606, filed Oct. 16, 2013 in the nameof John Nix, (vii) the specification of or values for a padding schemefor use with a digital signature algorithms 141 d, and/or similar orrelated values for using cryptographic algorithms 141 d. Although notillustrated in FIG. 5 b, at step 512 a configuration file could also beloaded into non-volatile memory, where the configuration file includes aplurality of fields specifying the operation of module 101. The sharedsecret key 510, parameters 126, and server address 207 could be includedin a configuration file.

Continuing at step 513, server identity 206 could be utilized in placeof or in addition to server address 207, and in this case module 101 canlater perform a DNS or DNSSEC lookup using server identity 206 in orderto obtain server address 207 for use in a message 208, such as thedestination address. Shared secret key 510 and server address 207 (orserver identity 206) could also be recorded in a ROM 101 c at step 513.Step 513 may also be performed concurrently with step 511 or step 512.According to an exemplary embodiment, a manufacturer may perform step513 and in this case step 513 could take place concurrently with step511. In another embodiment, a distributor of module 101 could performstep 513 and in this case step 513 could take place concurrently withstep 512. Alternatively, step 513 may be performed by a technician orend user after manufacturing and distribution and before module 101begins collecting sensor data with a monitored unit. Other possibilitiesexist as well for the sequence of steps 511 through 513 illustrated inFIG. 5 b without departing from the scope of the present invention.

Note that step 513 may take place multiple times during the lifetime ofa module 101, and in this case (a) the first time step 513 is conducted,step 513 could be conducted concurrent with steps 511 or 512, and (b) asubsequent time step 513 is conducted, step 513 could be conducted afterthe receipt of a response 209, where the response 209 includes a secondshared secret key 510, server address 207, and also potentially a newmodule identity 110. In other words, although not illustrated in FIG. 5b, a module 101 could return to step 513 from later steps upon theequivalent of a “factory reset”, or similar command where flash memory101 w and other nonvolatile memory would be cleared. In an exemplaryembodiment where step 513 takes place a second time may potentially bethe transfer of ownership or control of module 101, or a anotherembodiment where step 513 takes place a second time could be the uploadof new firmware that is incompatible with a previous configuration file.In any case, shared secret key 510 can preferably be uniquely associatedwith module 101 (i.e. any given shared secret key 510 may belong only toan individual module 101).

Shared secret key 510 may comprise a pre-shared secret key 129 a, asdescribed in FIG. 1 e. If module 101 has already derived a moduleprivate key 112 and module public key 111 (such as when step 513 isbeing conducted at a second or additional time as contemplated in theprevious paragraph), then shared secret key 510 may comprise (i) a keyreceived in a server encrypted data 504 including possibly a symmetrickey 127, or (ii) a derived shared secret key 129 b. Derived sharedsecret key 129 b could be obtained from using a key derivation function141 f and module public key 111 and server public key 114, using amodule public key 111 that has already been derived or used by module101 (such as if at least one module private key 112 and module publickey 111 had already been used or derived before step 513).

As contemplated herein in an exemplary embodiment, an first moduleprivate key 112 and first module public key 111 could be derived outsidemodule 101 and loaded into a nonvolatile memory such as flash memory 101w at a prior time before step 513, and the shared secret key 510 couldbe received by module 101 using the first module private key 112 andmodule public key 111 (such as, but not limited to, receiving the sharedsecret key 510 in a server encrypted data 504 using the first moduleprivate key 112 which had been loaded). Step 513 could then comprise alater time after the server encrypted data 504 has been received thatincludes the shared secret key 510, where module 101 may (i) prefer tobegin utilizing keys that module 101 internally derives usingcryptographic algorithms 141 instead of (ii) continuing to use the firstmodule public key 111 and module private key 112 that were derivedoutside of the module 101, such as, but not limited to, possibly loadedinto a nonvolatile memory from an external source.

In the embodiment where shared secret key 510 has not been received bymodule 101 in a server encrypted data 504, shared secret key 510 couldbe obtained and loaded by a distributor, installer, or end user into anonvolatile memory such as, but not limited to, flash memory 101 w inthe form of a pre-shared secret key 129 a, where pre-shared secret key129 a was obtained using a module identity 110 and pre-shared secret keycode 134 as depicted and described in connection with FIG. 1 e of U.S.patent application Ser. No. 14/055,606, filed Oct. 16, 2013 in the nameof John Nix. Module 101 could also utilize a first pre-shared secret key129 a, including a first pre-shared secret key 129 a entered bypotentially a distributor, installer, or end-user described in FIG. 1 e,to derive shared secret key 510. Other possibilities exist as well forshared secret key 510, and shared secret key 510 can be useful for theproper identification and/or authentication of module 101 upon module101's generation of a private key 112 and public key 111, as describedbelow including step 517. If module 101 is a mobile phone, ascontemplated herein, shared secret key 510 could be loaded by adistributor or company selling or servicing the mobile phone, or sharedsecret key 510 could be obtained by the end user or subscriber accessinga web page associated with a mobile operator for a wireless network 102associated with the mobile phone and/or SIM card.

Also note that as contemplated herein, an initial module private key 112and initial module public key 111 could be recorded into nonvolatilememory at step 513. For example, a manufacturer, distributor, installer,technician, or end-user could load the initial module private key andinitial module public key 111, where the initial module public key 111would be utilized to authenticate at step 517 a subsequent set ofpublic/private keys derived by module 101 at step 515. In this case, theinitial module public key 111 and/or initial module private key 112described in the previous two sentences could comprise the shared secretkey 510. In another embodiment, the initial module public key 111 andinitial module private key 112 could be recorded in a SIM or UICC, andthe SIM or UICC could be either virtual or physical such as, but notlimited to, a SIM card, including a Universal Integrated Circuit Card(UICC) or an embedded UICC (eUICC). A set of servers 105 n could alsorecord the initial module public key 111 recorded in the SIM (includingan eUICC), and the set of servers 105 n could authenticate a message ora subsequent module public key 111 derived by module 101 (such as in astep 515 below) using the initial module public key 111.

The use of an initial module public key 111 and/or initial moduleprivate key 112 are also depicted and described in connection with FIG.5 b of U.S. patent application Ser. No. 14/055,606, filed Oct. 16, 2013in the name of John Nix, which is hereby incorporated by reference inits entirety. Thus, FIG. 5 b also contemplates an embodiment whereshared secret key 510 at step 513 comprises an initial public/privatekey pair for module 101 that is not internally derived by module 101,including keys derived at step 515. Note that the contemplation of theuse of shared secret key 510 as a pre-shared secret key 129 a within thepresent invention may be different than the use of a pre-shared secretkey within a subscriber identity module (SIM) card as commonly supportedby wireless networks 102 with mobile phones in 2013.

If either a “virtual” SIM or a physical SIM card or eUICC is presentwithin module 101 (including a UICC or eUICC), and the SIM contains apre-shared secret key, such as, but not limited to, Ki, then ascontemplated herein, shared secret key 510 may be derived using the SIMand Ki. As one example, module 101 could (i) utilize a RAND message,potentially received from a 3G or 4G mobile network such as wirelessnetwork 102, and (ii) input the RAND into the SIM card and receive aresponse RES (or SRES), and utilize the string in RES to process orderive a shared secret key 510. Response RES could also comprise ashared secret key 510. Server 105 could also submit the same RANDassociated with the SIM and Ki to wireless network 102, and receive thesame RES as obtained by module 101. By both module 101 and server 105having the same RES value, they can follow a pre-agreed series of stepsto use the same RES in order to derive a commonly shared secret key 510(or the shared RES could comprise a shared secret key 510). In oneembodiment where module 101 includes a SIM for a wireless network 102,such as, but not limited to, a 4G LTE network, module 101 and server 105could both utilize a key derivation function 141 f, using the same RESas input, in order to derive the same shared secret key 510.

At step 514, module 101 can read module identity 110 using a read-onlyaddress. Module 101 can read module identity 110 directly from read-onlyhardware address by using system bus 101 d, including from a ROM 101 c,or module 101 can read module identity 110 from a nonvolatile memorysuch as a flash memory 101 w. Step 514 could also take place after step515 below. At Step 515, module 101 can derive module private key 112 anda corresponding module public key 111 using (i) random number generator128, (ii) cryptographic parameters 126, (iii) cryptographic algorithms141, and/or (iv) a key pair generation algorithm 141 e. Module 101 atstep 515 and elsewhere in the present invention can be a mobile phonesuch as, but not limited to, a smartphone. Private key 112 andcorresponding module public key 111 can be derived according to a widerange of parameters 126, and can utilize different algorithms fordifferent pairs of keys, such as, but not limited to, RSA 153 or ECC154. Key derivation at step 515 could generate keys of various lengths,such as, but not limited to, 2048 bits with RSA 153 or 283 bits with ECC154, and other possibilities exist as well. If using ECC 154 to derive apair of keys for module 101, step 515 could also accommodate the use ofdifferent elliptic curves for compatibility with server 105, such as,but not limited to, the use of odd-characteristic curves, Koblitzcurves, and making sure the derived keys by module 101 use a compatibleor identical elliptic curve or defined elliptic curve equation as server105, etc. Module 101 can use ECC parameters 137 or an ECC standard curve138 in a parameters 126 to derive module private key 112 and/or modulepublic key 111.

Deriving keys in step 515 could also comprise using values such asconstants or variables in a set of cryptographic parameters 126 todefine an elliptic curve equation for use with an ECC algorithm 154. Thevalues or constants to define an equation for an elliptic curve could beinput into a key pair generation algorithms 141 e in the form of ECCparameters 137 or an ECC standard curve 138. In an exemplary embodiment,where a parameters 126 does not include constants and variables fordefining an elliptic curve equation, a key pair generation algorithms141 e could use pre-defined elliptic curves with ECC algorithms 154 suchas, but not limited to, standardized, named curves in ECC standard curve138 including exemplary values such as, but not limited to, sect283k1,sect283r1, sect409k1, sect409r1, etc. Exemplary, standardized namedcurves, as opposed to module 101 and server 105 using an internallygenerated elliptic curve equation using cryptographic parameters 126,are also identified as example curves in IETF RFC 5480, titled “EllipticCurve Cryptography Subject Public Key Information”. Thus, module 101could use either standardized elliptic curves, or a separate definedelliptic curve equation as specified in a parameters 126.

The curve for module 101 to utilize in deriving module public key 111and module private key 112 at step 515 could be specified in a set ofcryptographic parameters 126. Consequently, the parameters of keysgenerated by module 101 at step 515 (including key length or algorithmsutilized) may be selected based upon the requirements of the applicationand can be included in a parameters 126. When deriving keys at step 515,module 101 may also preferably utilize data from sensor 101 f, radio 101z, a bus 101 d, a physical interface 101 a, memory 101 e, and/or a clockin order to generate a seed 129 for random number generator 128, orrandom number generator 128 could utilize these inputs directly. Arandom number 128 a can be input into key pair generation algorithm 141e in order to derive the module public key 111 and module private key112. Note that with ECC algorithms 154, a module private key 112 can bea random number 128 a in one embodiment, and the module public key 111can be derived with a key pair generation algorithms 141 e using themodule private key 112 comprising the random number 128 a.

Upon key derivation at step 515, module private key 112 and modulepublic key 111 can be recorded in a nonvolatile memory 101 w. Moduleprivate key 112 can preferably not be transmitted or sent outside module101. Also note that over a potential lifetime of a decade or more ofoperation of module 101, each time a new module private key 112 may berequired (for various potential reasons outlined above), the externalrecording and/or transferring of module private key 112 incurs apotential security risk. Security risks can be compounded if theexternal location records private keys 112 for a plurality of modules101. Also, by internally generating private key 112 at step 515, module101 can overcome significant limitations and costs requiring thedistribution of a pre-shared secret key Ki in the form of a SIM card orsimilar physical distribution of a pre-shared secret key, after module101 begins operations. In comparison, the use of a shared secret key 510in the present invention does not require physical distribution of a newshared secret key 510 after module 101 begins operations. Module 101'skey derivation could be triggered by either (i) a bootloader program125, where the bootloader program 125 determines that memory withinmodule 101 does not contain a module private key 112, or (ii) via amodule instruction 502 such as, but not limited to, a “key generation”or “derive new keys” command in a response 209 from a server, and otherpossibilities exist as well.

Note that module 101's generation of keys after deployment andinstallation may create challenges for authentication of a new modulepublic key 111 with module identity 110, since module 101 may beconnecting to server 105 or M2M service provider 108 via the Internet107. After module 101 creates new module public key 111 and moduleprivate key 112 at step 515, at step 516 server 105 can receive amessage 208 with the module identity 110, the new module public key 111,and cryptographic parameters 126. Parameters 126 in message 208 at step516 can represent the parameters 126 used to generate the module publickey 111. The sub-steps for a server 105 to receive a message 208 arealso depicted and described in connection with FIG. 2 and also FIG. 1 cabove. Parameters 126 within a message 208 can comprise descriptivevalues for new module public key 111. Note that at step 516, server 105does not need to receive new module public key 111 in the form of acertificate 122 (although it could be in the form of a certificate 122).New module public key 111 could be received by server 105 within astring or field within a body 602 of a TCP/UDP packet 601 a, illustratedin FIG. 6 b below. As depicted in step 516 shown in FIG. 6 b below,message 208 at step 516 can also optionally include a module public keyidentity 111 a, which can be recorded in module database 105 k alongwith module identity 110 and module public key 111 a.

According to an exemplary embodiment, a first source (IP:port) numberreceived in a first message 208 at step 516 can be different than asecond source IP:port number in a second message 208 at step 518 below,wherein a response 209 send in step 519 below can preferably be sent tothe second source IP:port number received in the second message 208 atstep 518 in order to traverse a firewall 104 (as depicted and describedin connection with packet 209 a in FIG. 2). In other words, the properdestination IP:port for a response 209 to a module 101 can change overtime, such as the proper destination IP:port changing due to the use ofsleep states by module 101 and/or function of a firewall 104.Consequently, according to an exemplary embodiment, a response 209 canutilize a destination IP:port number equal to the source IP:port numberreceived in the last (i.e. most recent) message 208 from module 101received by server 105.

At step 517, server 105 can authenticate the message 208 received instep 516 using the shared secret key 510 described in step 513. Server105 could record the shared secret key 510 before step 517 in a moduledatabase 105 k. If step 517 occurs for the first time in a lifetime ofmodule 101, then shared secret key 510 could comprise a pre-sharedsecret key 129 a recorded by server 105 in a module database 105 killustrated in FIG. 1 f. If step 517 occurs at subsequent time, thenserver 105 could have sent shared secret key 510 in a server encrypteddata 504 and recorded shared secret key 510 in a module database 105 kfor later use (such as at step 517). Server 105 can authenticate themessage 208 according to message digest, or using the shared secret key510 to process a symmetric key 127 within a symmetric cipheringalgorithm 141 b, where the successful encryption and decryption of datawithin message 208 using the shared secret key 510 on both ends could beconfirmation that message 208 is authenticated, since both parties wouldonly be able to mutually successfully encrypt and decrypt by sharing thesame shared secret key 510. As contemplated herein, the term“authenticating a public key” may refer to “authenticating a messagethat includes the public key”, and both may refer to validating orverifying that a recorded module identity 110 stored in server 105 isassociated with a receive module public key 111.

Other possibilities exist as well for server 105 to use a shared secretkey 510 in order to authenticate a message 208 that contains a newmodule public key 111 (where module 101 contains a new module privatekey 112). In one embodiment, message 208 in step 516 could include asecure hash signature using secure hash algorithms 141 c, where both themodule 101 and the server 105 input a string combing at least a portionof the shared secret key 510 and a portion of the new module public key111 into the secure hash algorithms 141 c in order to obtain the securehash signature. Module 101 could send the secure hash signature toserver 105 in a message 208. The authentication of a new module publickey 111 in step 517 is also depicted and described in step 1202 of FIG.12 below, including the authentication and/or verification of either (i)new module public key 111 or (ii) a message 208 that includes new modulepublic key 111 according to steps that use alternatives to a sharedsecret key 510. Thus, according to some exemplary embodiments (alsodiscussed with step 1202 in FIG. 12 below), new module public key 111can be authenticated and/or verified as being properly associated with arecorded module identity 110 in server 105 (i) without the use of ashared secret key 510, and/or (ii) with alternatives to using sharedsecret key 510. After receiving authenticated new module public key 111in steps 516 and 517, according to a preferred exemplary embodiment,server 105 can preferably only accept and process (A) either incoming(i) a symmetric keys 127 ciphered with a asymmetric ciphering algorithm141 a, and/or (ii) incoming server instructions 414, when (B) the nextor a subsequent incoming message 208 from module 101 using moduleidentity 110 also includes a valid module digital signature 405 verifiedby using the new module public key 111, received at step 516.

According to an exemplary embodiment, shared secret key 510 can beassociated with a module public key identity 111 a, and shared secretkey 510 can be used to authenticate a particular value for a modulepublic key identity 111 a. In this embodiment, (i) a message 208 withmodule public key 111 and a first module public key identity 111 a maybe authenticated using a shared secret key 510, but (ii) a secondmessage with module public key 111 and a second module public keyidentity 111 a may not be authenticated using the same shared secret key510. Thus, in accordance with an exemplary embodiment, shared secret key510 can be used for both (i) a single time for authenticating a modulepublic key 111, and (ii) authenticating a module public key 111 with aparticular value for the module public key identity 111 a. Note thatmodule public key identity 111 a can be particularly useful with keyrevocation, such that a key revocation could specify a particular modulepublic key identity 111 a (associated with a particular module publickey 111) to be revoked, but other module public keys 111 for a module101 and module identity 110 with different module public key identities111 a could remain valid and not revoked.

Although not illustrated in FIG. 5 b, server 105 could operate with acertificate authority 118 in order to utilize a new module public key111, as described in this paragraph. In this case, server 105 couldbypass the authentication at step 517, but certificate authority 118 mayperform step 517 in order to sign the certificate 122, includingpossibly using shared secret key 510 to authenticate module public key111. At step 516, new module public key 111 could be received by server105 in the form of a uniform resource locator (URL) or domain name fordownload of a certificate 122 corresponding to the new module public key111. Using a certificate authority 118 in conjunction with step 516 isalso depicted and described in connection with FIG. 5 b of U.S. patentapplication Ser. No. 14/055,606, filed Oct. 16, 2013 in the name of JohnNix, which is hereby incorporated by reference in its entirety.

After steps 516 and 517, server 105 can update a module database 105 kusing the module identity 110 to insert or update the new module publickey 111, and parameters 126 associated with new module public key 111.Server 105 may communicate with a plurality of modules 101, and thuscould utilize a module database 105 k in order to record the new modulepublic key 111 and parameters 126 with the module identity 110. In oneembodiment, the module identity 110 could preferably operate as an indexwithin a table of module database 105 k in order to speed reads andwrites from the table used with module public key 111, parameters 126,and also selecting a symmetric key 127 for a symmetric cipheringalgorithm 141 b in later messages. As described in FIG. 1 g, parameters126 can include data useful for the operation of cryptographicalgorithms 141 and module public key 111. According to a preferredexemplary embodiment, some modules 101 in a system 100 could utilize afirst elliptic curve, such as, but not limited to, using a first set ofECC parameters 137 or first ECC standard curve 138 within a parameters126, and other modules 101 could utilize a second and different ellipticcurve within a parameters 126, such as, but not limited to, a second setof ECC parameters 137 or second ECC standard curve 138.

After verifying the new module public key 111 in a step 517, at step 518of FIG. 5 b, server 105 could receive a second message 208, and thesecond message 208 can include a module identity 110 and moduleencrypted data 403. Although not illustrated in FIG. 5 b, the secondmessage 208 could also include a module digital signature 405, whereinthe module digital signature is created with the new module public key111 received in step 516. Server 105 could then utilize the stepsillustrated in FIG. 4 in order to process the incoming message 208 withthe new module public key 111, including using the module identity 110received in the second message 208 at step 518 to select the new modulepublic key 111 and subsequently verify a module digital signature 405using the new module public key 111 and digital signature algorithm 141d. Also as discussed in FIG. 4 in connection with processing a receivedmessage 208, server 105 could decrypt the module encrypted data 403 inthe second message 208 by using server private key 105 c. In oneembodiment, the second message 208 as illustrated in FIG. 5 b, whichcould be the next message after authenticating module public key 111 instep 517, could include a symmetric key 127.

The module encrypted data 403 in step 518 could include a symmetric key127 for utilization with a symmetric cipher 141 b, where symmetric key127 could be ciphered with an asymmetric ciphering algorithm 141 a. Inanother embodiment, module 101 could also send sensor data in a moduleencrypted data 403 at step 518. Or, at step 518 the second message 208could be a signal and/or data (such as a random number 128 a) for server105 to use a key derivation function 141 f with the server public key114 and the new module public key 111 (received at step 516) to create anew derived shared key 129 b for use with symmetric ciphering algorithms141 b in subsequent messages 208. In other words, in some embodimentsderived shared key 129 b can function as a symmetric key 127. If thesecond message 208 in step 518 comprises a signal and/or data for server105 to derive a new derived shared key 129 b, then this second message208 could then optionally leave off module encrypted data 403 and/or amodule digital signature 405. The successful use of a new derived sharedkey 129 b (using the new module public key 111, possible received instep 516, and existing server public key 114) with symmetric cipheringalgorithms 141 b at subsequent steps by both module 101 and server 105can indicate to each the communications are mutually authenticated.Second message 208 could also include a server instruction 414, asecurity token 401, and/or a timestamp value 604 a, and otherpossibilities exist as well without departing from the scope of thepresent invention.

At step 519, server 105 can send a response 209 to module 101, where theresponse 209 includes server encrypted data 504 and a module instruction502. Server 105 could take the steps to create and send response 209 asdepicted and described in connection with FIG. 5 a. Response 209 couldbe formatted according to the exemplary response 209 illustrated in FIG.6 a below. The module instruction 502 could be an acknowledgement 501that the second message 208 sent in step 518 was received by server 105.At step 520, server 105 can receive a third message 208 with aconfirmation 414 to server 105. Confirmation 414 can be used to signalproper execution of module instruction 502 from a step 519, if moduleinstruction 502 comprised an instruction other than an “ACK” oracknowledgement 501. In an embodiment where module instruction 502 instep 519 comprises an acknowledgement 501 from server 105, then theconfirmation 414 may omitted and in this case step 520 could be skipped.

At step 521 server 105 can determine or evaluate if a new module publickey 111 and/or certificate 122 are required for continued operation. Onereason for the need of new keys could be the expiration of a certificate122 for module 101, or the desire to utilize a different set ofcryptographic parameters 126 such as, but not limited to, a longer keylength for increase security or the use of a different ECC parameters137 or a different ECC standard curve 138 with cryptographic algorithms141. As described elsewhere herein, many other possibilities exist forreasons why module 101 and/or server 105 can prefer for module 101 toutilize a new module public key 111 and new module private key 112.Either server 105 or module 101 may determine that the use of a newmodule public key 111 and new module private key 112 may be preferred atstep 521. If module 101 determines that the use of a new module publickey 111 and new module private key 112 is preferred or desirable, module101 could send server 105 a signal that new keys will be generatedeither before step 521 or at step 521.

Upon determining new keys are desirable at step 521, then server 105could instruct module 101 to derive new private and public keys byreturning to step 515. Although not illustrated in FIG. 5 b, upondetermining “yes” at step 521, server 105 could send a moduleinstruction 502 of “new key generation” and also a new or current set ofcryptographic parameters 126 to utilize with the new module private key112 and module public key 111. In accordance with exemplary embodiments,module instruction 502, including the “new key generation” instructionand set of parameters 126, can be sent in a response 209 both (i) aftermodule 101 wakes from a sleep or dormant state and sends a message 208after waking from the sleep or dormant state, and (ii) before theexpiration of a firewall port binding timeout value 117 after receivingthe message 208. If server 105 determines that new keys are not requiredor desirable at step 521, server 105 can then proceed to step 312 andwait for additional incoming messages 208 from module 101 with moduleidentity 110 or other modules. Step 312 is also depicted and describedin connection with FIG. 3. Other possibilities exist as well for aserver to receive and respond to messages without departing from thescope of the present invention.

FIG. 6 a

FIG. 6 a is a simplified message flow diagram illustrating an exemplarymessage received by a server, and an exemplary response sent from theserver, in accordance with exemplary embodiments. FIG. 6 a illustratesexemplary details within message 208 received by server 105 and alsoresponse 209 sent by server 105. Message 208 may comprise a TCP/UDPpacket 601 a sent from module 101 source IP:port 204 to server 105destination IP:port 207. According to an exemplary embodiment, UDP orUDP Lite formatting for TCP/UDP packet 601 a may be preferred. SourceIP:port 204 and destination IP:port 207 in message 208 may be includedwithin a header in TCP/UDP packet 601 a. Although a single message 208,response 209, module 101, and server 105 are shown in FIG. 6 a, system100 as illustrated in FIG. 2 and other systems depicted herein maycomprise a plurality of each of the nodes and datagrams illustrated inFIG. 6 s. As contemplated herein, the term “datagram” may also refer toa “packet”, such that referring to as datagram 601 a can be equivalentto referring to packet 601 a. Note that when using TCP protocol, apacket within a series of TCP messages can also be a datagram 601 a.

TCP/UDP packet 601 a may include a body 602, which can represent thedata payload of TCP/UDP packet 601 a. The data payload of message 208can optionally include channel coding 406 as described in FIG. 4 above,if the transport protocol for TCP/UDP packet 601 a supports thetransmission of bit errors in the body 602 (as opposed to entirelydropping the packet), such as, but not limited to, with the UDP Liteprotocol. Support for the transmission of bit errors in body 602 bywireless network 102 would be preferred over entirely discarding apacket, since the programs such as module controller 105 x could includesupport for and utilization of channel coding 406. Without UDP Liteformatting, message 208 can alternatively sent by module 101 as a UDPdatagram, such as if wireless network 102 (or a wired connection) doesnot support the UDP Lite protocol.

Note that if (A) message 208 comprises (i) regular UDP or TCP formatting(i.e. not UDP Lite or similar variations) within an IPv6 network, or(ii) a UDP or TCP format within an IPv4 network with a checksum 603enabled (i.e. checksum 603 not equal to zero), then (B) channel coding406 may optionally be omitted. Checksum 603 can comprise a value to foran integrity check of a packet 601 a, and the calculation and use ofchecksum 603 is defined in IETF standards for TCP and UDP packets. Inaccordance with an exemplary embodiment, including the use of IPv6 forInternet 107 and a UDP datagram for message 208 and response 209, achecksum 603 sent by module 101 in a message 208 does not equal achecksum 603 in the message 208 received by server 105.

The body 602 can include a module identity 110, module encrypted data403, and channel coding 406. Although not illustrated in FIG. 6 a, body602 could also include a module digital signature 405, as illustrated inFIG. 6 of U.S. patent application Ser. No. 14/039,401. Module identity110 is illustrated in FIG. 6 a as external to module encrypted data 403,although module identity 110 may optionally only be included in moduleencrypted data 403, and in this case module identity 110 would not beexternal to module encrypted data 403 in a body 602. By including moduleidentity 110 as external to module encrypted data 403, server 105 canuse the unencrypted module identity 110 in order to select either (i)the appropriate module public key 111 to verify module digital signature405 if an asymmetric cipher 141 a is used within cryptographicalgorithms 141, or (ii) the appropriate symmetric key 127 withincryptographic algorithms 141 to decrypt the module encrypted data 403.Module public key 111 and symmetric key 127 may preferably be recordedin a module database 105 k, such that server 105 can access a pluralityof public keys associated with different module identities 110 withdifferent bodies 602 for a plurality of modules 101.

Thus, by including module identity 110 external to module encrypted data403, server 105 can utilize the module identity 110 to query a moduledatabase 105 k and select the appropriate module public key 111 orsymmetric key 127. As noted previously, module identity 110 couldcomprise a string or number that is uniquely associated with moduleidentity 110, such as, but not limited to, a session identity, asopposed to being a module identity 110 that is read from hardware inmodule 101 such as, but not limited to, an IMEI number, Ethernet MACaddress, etc. Module identity 110 is illustrated in FIG. 6 a as asession identity that is a different representation of module identity110 of a serial number such as in FIG. 2, but in both cases the valuescan comprise a module identity 110 since the values can be uniquelyassociated with module 101 at different points in time.

According to an exemplary embodiment where asymmetric ciphering 141 a ofmodule encrypted data 403 is utilized, such as (i) the first message 208sent by module 101 and (ii) where a symmetric key 127 had not beenpreviously exchanged, module identity 110 can be (a) within moduleencrypted data and (b) not external to module encrypted data 403. Inthis case, server 105 can utilize server private key 105 c to, insequence, decrypt module encrypted data 403, extract module identity 110from the decrypted module encrypted data 403, and then used the moduleidentity 110 to select module public key 111 from module database 105 kin order to verify a module digital signature 405. In a relatedembodiment, if a module identity 110 is in body 602 and external tomodule encrypted data 403, then module identity 110 could be obfuscatedor otherwise ciphered according to a pre-agreed algorithm with server105, such that server 105 can utilize the obfuscated or ciphered moduleidentity 110 to select a module public key 111 from module database 105k. The value of “[Module Identity String]” shown in FIG. 6 a couldcomprise an obfuscated module identity 110. According to an exemplaryembodiment where (i) symmetric ciphering 141 b of module encrypted data403 is utilized, such as after a first message 208 had already been sentby module 101 and a symmetric key 127 had previously been exchanged,then (ii) module identity 110 can be external to module encrypted data403 and in body 602 in order for server 105 to utilize module identity110 and select symmetric key 127 from a module database 105 k, therebyenabling server 105 to decrypt the module encrypted data 403 using theselected symmetric key 127 and a symmetric ciphering algorithm 141 b.

In exemplary embodiments, a module digital signature 405 may optionallybe omitted from body 602 after module 101 has previously sent symmetrickey 127 in a previous message 208 to the message 208 illustrated in FIG.6 a. In other words, in a series of messages 208, module 101 canpreferably change from (i) using asymmetric ciphering 141 a with in aprevious message 208 that includes symmetric key 127 in a moduleencrypted data 403 (where the initial message 208 also includes moduledigital signature 405 and module identity 110) to (ii) using symmetricciphering 141 b with subsequent messages 208 without module digitalsignature 405 in the series (where the subsequent messages 208 canoptionally include an obfuscated module identity 110 external to moduleencrypted data 403 for server 105 to select the appropriate symmetrickey 127). Message 208 illustrated in FIG. 6 a can comprise a subsequentmessage 208 as described in the previous sentence. A series of messages208 could begin when the initial message 208 is sent by module 101 andend when expiration time 133 of symmetric key 127 has transpired, andsubsequently a new series of messages 208 could begin where the firstmessage 208 in the new series of messages changes back to asymmetricciphering 141 a with initial message 208 that includes symmetric key 127in a module encrypted data 403 (where the initial message 208 alsoincludes a new module digital signature 405). An example of the initialmessage 208 described in this paragraph can comprise message 208illustrated in FIG. 6 of U.S. patent application Ser. No. 14/039,401,filed Sep. 27, 2013 in the name of John Nix, which is herebyincorporated by reference in its entirety. Other possibilities exist aswell without departing from the scope of the present invention.

Using a message 208 with a module digital signature 405 can be both moreefficient and overall more secure than digest authentication (such asthe digest authentication described in IETF RFC 2069), although usingdigest-based authentication may be alternatively used. The use of amodule digital signature 405 requires only a single packet for message208 and a single packet for response 209 for secure communicationbetween module 101 and server 105. Module encrypted data 403 illustratedin FIG. 6 a can be processed using the steps and algorithms described inFIG. 4. Note that module encrypted data 403 as illustrated in FIG. 6 ais shown in a plaintext form for ease of illustration, but actual moduleencrypted data 403 within body 602 of a packet 601 a could betransmitted as binary, hexadecimal, Base64 binary-to-text encoding, orother encoding rules and strings of the actual data within moduleencrypted data 403 would not normally be human readable.

In an exemplary embodiment, encryption by module 101 may optionally beomitted, and the server instruction 414 with corresponding data could beincluded within a message 208 without encryption, such as if securitycould be maintained at the network level. As one example for thisembodiment without encryption, server instruction 414 could be includedin body 602 as plaintext. The encryption and/or security could beapplied through other means, such as, but not limited to, a securetunnel between module 101 and server 105, although setting up andmaintaining a secure tunnel and similar or other means of security mayrequire more processing and bandwidth resources than the efficienttechniques described herein.

Module encrypted data 403 can include a server instruction 414, a serveridentity 206, a module identity 110, a security token 401, a timestamp604 a, and a sensor measurement 604 b. The server instruction 414 canrepresent the purpose of the message 208 for server 105, and FIG. 6 aillustrates an “update” for server instruction 414. An update for serverinstruction 414 could be used to periodically notify server 105 ofregular, periodic sensor measurements 604 b acquired by a sensor 101 for also data from a plurality of sensors. An update for serverinstruction 414 may also comprise a periodic report regarding monitoredunit 119, and a server instruction 414 is described in FIG. 4. Otherserver instructions 414 besides an “update” may be included in a moduleencrypted data 403 within a body 602. The “update” illustrated inmessage 208 in FIG. 6 a can also include a new symmetric key 127, andthe module encrypted data 403 illustrated in FIG. 6 a may comprise theuse of either an asymmetric ciphering 141 a with public/private keys, or(ii) symmetric ciphering 141 b with a symmetric key 127.

An initial transmission or negotiation of a symmetric key 127 maypreferably utilize asymmetric ciphering 141 a and the use of a publickey as an encryption key and a private key as a decryption key.Subsequent transmission of a new symmetric key 127 may utilize either(i) a symmetric cipher 141 b with a previously negotiated but stillvalid symmetric key 127 (i.e. expiration time 133 has not transpired),or (ii) asymmetric ciphering 141 a. If the data within instruction 414is longer than the maximum data length supported by a selectedasymmetric ciphering algorithm 141 a and the public/private key pair,then module encrypted data 403 within message 208 can be broken up intoseveral sections, such that the data within each section is less thanthe maximum data length supported by the asymmetric ciphering algorithm141 a and key length. In an exemplary embodiment, a first symmetric key127 can be used with module encrypted data 403 and a second symmetrickey 127 can be used with server encrypted data 504. The first symmetrickey 127 and second symmetric key 127 can be different, including using afirst symmetric ciphering algorithm 141 b with the first symmetric keyand a second symmetric ciphering algorithm 141 b with the secondsymmetric key 127. In another exemplary embodiment, in order to reducethe number of messages required to be transmitted and thus save powerusage by a module 101, symmetric key 127 used with module encrypted data403 and server encrypted data 504 can be the same and rotatedperiodically such, but not limited to, when expiration time 133 for asymmetric key 127 transpires.

Module identity 110 within module encrypted data 403 can represent theidentity of module 110, and could represent a serial number read bymodule 101 from a read-only hardware address. Module identity 110 isdescribed in FIG. 1 c and can represent a unique identifier of module101. Module identity 110 outside module encrypted data 403 can representa string or number that is different than a serial number that can beused by module 101 within a module encrypted data 403. Security token401 within module encrypted data 403 can represent a random string inorder to make message 208 reasonably unique and thus system 100 in FIG.2 and other systems illustrated herein robust against replay attacks.Security token 401 is described in FIG. 5 a. Timestamp 604 a canrepresent a time value that module 101 sends message 208 or a time valuethat module 101 acquired sensor data 604 b. Sensor data 604 b isdescribed with the description of a sensor 101 f in FIG. 1 e, and sensordata 604 b can represents data module 101 acquires using sensor 101 f.Sensor data 604 b within message 208 may be stored by server 105 in amodule database 105 k, or potentially forwarded to another server suchas, but not limited to, an application server 171 for additionalprocessing. Sensor data 604 b can comprise a wide range of values for asensor 101 f besides the exemplary value of a temperature reading shownin FIG. 6 a, including raw sensor data, compressed sensor data, andprocessed or averaged data. The specific sensor data 604 b shown in FIG.6 a is illustrated to be exemplary and not limiting for sending andreceiving sensor data. Sensor data 604 b may also be referred to as asensor measurement 604 b.

FIG. 6 a also illustrates exemplary details within response 209 sent byserver 105. Response 209 may comprise a TCP/UDP packet 601 b sent fromserver 105 IP:port 207 the IP address 210 and port number 605, where IPaddress 210 represents the external IP address of wireless networkfirewall 104 and port number 605 is the source port in message 208 asreceived by server 105 (i.e. the source port in message 208 aftertraversing the firewall 104 illustrated in FIG. 6 a). Thus, IP:port withIP address 210 and port number 605 in response 209 may be different thanIP:port 204 in message 208, since the presence of a wireless networkfirewall 104 may perform NAT routing, which could change the source IPaddress and source port number from IP:port 204 to IP address 210 andport number 605 in message 208, as received by server 105. The use ofwireless network firewall 104 in wireless network 102 may require thatresponse 209 be sent from IP:port 207 to IP address 210 and port number605 in order to be properly processed by firewall 104 and forwarded tomodule 101 at IP:port 204. Source IP:port 207 and destination IP address210 and port number 605 in response 209 may be included within a headerin TCP/UDP packet 601 b, as illustrated in FIG. 6 a. TCP/UDP packet 601b could comprise a regular UDP packet, a UDP Lite packet, or a TCPdatagram, or similar protocols supported by an Internet 107. TCP/UDPpackets 601 a and 601 b may utilize the same protocol.

As noted previously, the use of checksums may be mandatory in IPv6networks, and thus a response 209 comprising a packet 601 b can includea checksum value 603 (illustrated in message 208 but not response 209)for the header. The use of firewalls such as firewall 104 can change theheader values in a packet 601 b. In accordance with a preferredexemplary embodiment, a first checksum value 603 within a response 209sent by server 105 can be different and/or not equal to a secondchecksum value 603 within the response 209 received by module 101.Likewise, in an exemplary embodiment, a first checksum value 603 withina message 208 sent by a module 101 can be different and/or not equal toa second checksum value 603 within the message 208 received by server105.

A UDP, TCP, or UDP Lite datagram as a TCP/UDP packet 601 b withinresponse 209 may include a body 606. Body 606 may comprise the payloador data within a UDP, TCP, or UDP Lite packet. Body 606 can include aserver identity 206, a server digital signature 506 (not shown in FIG. 6a), server encrypted data 504, and channel coding 406. Server identity206 is illustrated in FIG. 6 a as external to server encrypted data 504within body 606, but server identity 206 may optionally be included inserver encrypted data 504 instead. Module 101 may communicate with aplurality of servers 105, and server identity 206 as external to serverencrypted data 504 can allow module 101 to select the appropriatesymmetric key 127 to utilize for decrypting server encrypted data 504(since each of the multiple servers 105 that module 101 communicateswith may utilize a different symmetric key 127).

Also note that the server identity 206 can be similar to module identity110, such that multiple different values for server identity 206 couldbe utilized in different systems illustrated herein, but each of thedifferent values could preferably be uniquely associated with a server105. As one example, server identity 206, outside server encrypted data504 as illustrated in FIG. 6 a, may comprise a session identity orsession identifier, as opposed to a different server identity 206 thatcould comprise a hardware serial number or domain name for server 105.Thus, server identity 206 outside a server encrypted data 504 may be adifferent string or representation than server identity 206 withinserver encrypted data 504, but both strings/numbers used for serveridentity 206 in response 209 could be associated with server 105. In anexemplary embodiment, a set of servers 105 n can collectively use aserver identity 206.

Although not illustrated in FIG. 6 a, a server digital signature 506 inbody 606 can comprise a secure hash signature of a subset of body 606,where the subset of body 606 can comprise server encrypted data 504,and/or server identity 206 as illustrated in FIG. 6 a. The use of aserver digital signature 506 in a body 606 is illustrated in FIG. 6 ofU.S. patent application Ser. No. 14/039,401, filed Sep. 27, 2013 in thename of John Nix, which is hereby incorporated by reference in itsentirety. In this manner, module 101 can utilize server digitalsignature 506 to authenticate that response 209 was sent by server 105.Channel coding 406 in body 606 is also depicted and described inconnection with FIG. 5 a above. The server digital signature 506 mayoptionally be omitted as well.

Body 606 may include server encrypted data 504. Server encrypted data504 is depicted and described in connection with FIG. 5 a above. Serverencrypted data 504 may include an acknowledgement 501, whereinacknowledgement 501 can notify module 101 that message 208 has beenreceived by server 105. As illustrated in FIG. 6 a, server encrypteddata 504 may optionally also include a module instruction 502 for module101. The module instruction 502 could be a string that containsinstructions or configuration parameters for module 101, such as anorder to change state, parameters regarding the monitoring of monitoredunit 119, server names or addresses, radio frequency parameters, timervalues, settings for actuator 101 y, etc. A module instruction 502 isdepicted and described in connection with FIG. 5 a above. The exemplarymodule instruction 502 illustrated in FIG. 6 a comprises a “keygeneration” 608 instruction for module 101 derive a new set of keys,also depicted and described in connection with FIG. 5 b above. Otherpossibilities for a module instruction 502 within a response 209 arepossible as well without departing from the scope of the presentinvention. Although not depicted in FIG. 6 a or FIG. 2, if response 209includes a module instruction 502, according to an exemplary embodiment,module 101 can preferably send a second message 208 to server 105, wherethe second message 208 includes a confirmation that module instruction502 was successfully executed or implemented by module 101. Thisconfirmation could be included in a server instruction 414 for server105 within a second message 208, and the confirmation could include atimestamp value 601 a for when the module instruction 502 was executed.A timestamp value 601 a may be useful for tracking time of actions anddata collected, when a module 101 may only periodically have access to anetwork 102 and also may periodically be dormant or sleep.

Also, although a server encrypted data 504 may be included within a body606 in exemplary embodiments, body 606 may optionally omit serverencrypted data 504 and include data from server 105 or a set of servers105 n that is not encrypted, such as, but not limited to, plaintext. Asone example in this case, acknowledgement 501 could be included in body606 as plaintext. Also, although not illustrated in FIG. 6 a, serverencrypted data 504 could include a symmetric key 127 for module 101 toutilize with symmetric ciphering 141 b in cryptographic algorithms 141for processing a module encrypted data 403 in subsequent messages 208and/or responses 209. Server encrypted data 504 in a response 209 mayinclude a security token 401. Security token 401 may be a random stringand may also be generated by either server 105 or module 101. Ifsecurity token 401 is generated by module 101, then security token 401may be included in message 208 and also utilized by server 105 inresponse 209, as illustrated in FIG. 6 a. Other possibilities exist aswell without departing from the scope of the present invention.

FIG. 6 b

FIG. 6 b is a simplified message flow diagram illustrating an exemplarymessage received by a server, wherein the message includes a derivedmodule public key, in accordance with exemplary embodiments. Asdiscussed in FIG. 5 b, there can be cases where module 101 derives a newmodule public key 111 and new module private key 112. On example wouldbe the initial creation of the key pairs by module 101, and many otherexamples could exist as well. FIG. 6 b can illustrate an exemplaryformat and contents of a message 208 for steps 516 and 517 of FIG. 5 b.This exemplary message 208 can also help to illustrate the significantdifferences from conventional technology and improvements for efficientand secure communications by utilizing embodiments contemplated herein.

A message 208 illustrated in FIG. 6 b using steps 516 and 517 caninclude (i) sending new module public key 111, a module public keyidentity 111 a, a module identity 110, a server instruction 414, asecurity token 401, and a set of cryptographic parameters 126 associatedwith the new module public key 111 and/or cryptographic algorithms 141for using the new module public key 111. Exemplary cryptographicparameters 126 illustrated in FIG. 6 b include (i) a secure hashalgorithm 141 c to utilize in signatures, which could comprise the SHA256 algorithm as shown (which may also be known as the SHA-2 algorithm),(ii) a selected elliptic curve for use with ECC algorithms 154 or amodulus to use with RSA algorithms 153, and (iii) a time-to-live valuefor the public key, such as, but not limited to, the illustrated “timeto live” value of 1 year shown in FIG. 6 b. The time value for thevalidity of new module public key 111 could alternatively be specifiedin a set expiration date. Other values associated with cryptographicalgorithms 141 could be included in a set of cryptographic parameters126 as well, and the illustrated values are intended to be exemplaryinstead of limiting. In exemplary embodiments, the set of cryptographicparameters 126 in a message 208 could comprise a set of cryptographicparameters 126 depicted and described in connection with step 1105 ofFIG. 11 below, and/or FIG. 1 g.

Additional values or fields within a message 208 associated withcommunicating a new module public key 111 with server 105 could includea server instruction 414 of “new public key”. This server instruction414 could inform server 105 to utilize the new module public key 111within the message 208. Module public key identity 111 a can include asequence number or identity for the new module public key 111, such thatmodule 101 or server 105 can properly reference and/or record the keyfrom a plurality of module public keys 111 that could be associated withmodule identity 110. Although module public key identity 111 a isillustrated as a separate field in server instruction 414, module publickey sequence number 111 a could optionally be included in a set ofcryptographic parameters 126, such that the value within cryptographicparameters 126 specifies the current sequence number of module publickey identity 111 a for the new module public key 111 included in amessage 208.

Other fields and features within a message 208 as illustrated in a FIG.6 b can be similar to the fields presented in FIG. 6 a. Since (a) FIG. 6b can also illustrate a first message 208 sent by a module 101 to aserver 105, such as after keys are derived in a step 515, then (b)module 101 can read multiple values from RAM 101 e or a nonvolatilememory 101 w or 101 c in order properly construct or format message 208.Each of (i) destination IP:port number 207, (ii) parameters 126, and(iii) shared secret key 510 can preferably be written into nonvolatilememory at step 512 of FIG. 5 b, if message 208 in FIG. 6 b representsthe first message 208 sent by module 101. The source IP:port number 204can represent a number assigned by an operating system 101 h.

If message 208 in FIG. 6 b comprises a subsequent time message 208 isreceived by server 105 (i.e. not a first time module 101 sends a modulepublic key 111), such as after step 521 illustrated in FIG. 5 b, theneach of (i) destination IP:port number 207, (ii) parameters 126, and(iii) shared secret key 510 could be updated by server 105 using amodule instruction 502 within a server encrypted data 504 before message208 illustrated in FIG. 6 b is received by server 105. In this manner,shared secret key 510 could change from (i) comprising a pre-sharedsecret key 129 a (for a first message 208 after initial module keyderivation) to (ii) comprising a shared secret key that is sent byserver 105 within a server encrypted data 504 (for a subsequent message208 after a subsequent module key derivation).

After receiving message 208, server 105 can use the module identity 110illustrated in a body 602 of FIG. 6 b to select the shared secret key510 in order authenticate message 208. As described in step 517 of FIG.5 b, server 105 may preferably authenticate message 208 that includesmodule public key 111 in order to confirm that module public key 111originated from physical module 101 with a hardware module identity 110(as opposed to being an imposter submitting the module public key 111).The use of a channel coding 406 is described in connection with FIGS. 4and 5 a, and channel coding may optionally be omitted. If message 208comprises a UDP Lite packet, then channel coding may optionally beapplied within the body 602. If message 208 comprises a UDP packet, thenchannel coding may comprise sending the exact same UDP packet 601 amultiple times, such as, but not limited to, an exemplary 3 packets 601a sent at the same time.

Although not illustrated in FIG. 6 b, in an exemplary embodiment modulepublic key 111 could also be received in a message 208, where the modulepublic key 111 and parameters 126 can be included in an encrypted formatwithin a module encrypted data 403. As depicted and described inconnection with steps 1001 and 1002 of FIG. 10, and also FIG. 11 of U.S.patent application Ser. No. 14/039,401, the security of a system 100 andother systems illustrated herein can be further increased by both (i)ciphering module public key 111 and the set of cryptographic parameters126, and (ii) only sharing the module public key 111 in a confidentialmanner with server 105 and/or a set of servers 105 n. If module 101needed a module public key 111 for other purposes, such as, but notlimited to, obtaining a certificate, then a second, publicly disclosedmodule public key 111 could be utilized, where the second module publickey 111 is different than a module public key 111 using parameters 126that is sent to a server 105 in a module encrypted data 403.

FIG. 6 b also illustrates an exemplary embodiment, where module publickey 111 can be authenticated with server 105 using a module digitalsignature 405. If message 208 comprises a first time module 101 utilizesa step 516 and step 517, such that a module public key 111 has notpreviously been sent to server 105 and/or a set of servers 105, then inan exemplary embodiment message 208 could include a module digitalsignature 405 using the shared secret key 510, which could comprise thepre-shared secret key 129 a. If message 208 comprises a subsequent timemodule 101 utilizes a step 516 and step 517, such that a module publickey 111 has previously been sent to server 105, then message 208 couldinclude a module digital signature 405 using the previous module privatekey 112 (i.e. not the new module private key 112 associated with the newmodule public key 111 in the message 208 shown in FIG. 6 b). As noted inFIG. 5 b, module digital signature 405 could be omitted, and message 208with module public key 111 could be authenticated using a message digestalgorithm and the shared secret key 129 a. Other possibilities for amodule 101 to send a new module public key 111 in a message exist aswell without departing from the scope of the present invention.

FIG. 7

FIG. 7 is a simplified message flow diagram illustrating an exemplarysystem with exemplary data transferred between a module and anapplication using a server, in accordance with exemplary embodiments.FIG. 7 includes a system 700 and illustrates an exemplary message 208from a module 101 to a server 105 and also an exemplary applicationmessage 701 between an application 171 i and server 105. Note thatapplication message 701 could also be considered as transferred between,sent to, or received from server 105 and application server 171. System700 can comprise a module 101, a server 105, and an application 171 ioperating on an application server 171, and these elements maycommunicate over a network such as, but not limited to, the Internet107. For example, application server 171 may utilize an IP:port number702 for sending and receiving messages with server 105. The IP addresswithin IP:port number 702 is illustrated as an IPv4 address, but an IPv6address could be utilized as well, or other addressing schemes arepossible. Message flows within a module 101 from a sensor 101 f and toan actuator 101 y are also included in a system 700 as illustrated inFIG. 7. Message flows within a module 101 could utilize a system bus 101d.

As illustrated in FIG. 7, before module 101 sends a module public key111 to server 105, possibly by using step 516 as illustrated in FIG. 7,module 101 can derive the public and private keys using step 515 and aset of cryptographic parameters 126. Alternatively, in a differentembodiment module 101 may have the module public key 111 and moduleprivate key 112 generated outside module 101 and loaded into anon-volatile memory 101 w, and in this case step 515 shown can beoptionally omitted. Server 105 can utilize step 516 to receive a modulepublic key 111 from module 101. Server 105 can utilize a step 517 and ashared secret key 510 to authenticate a message 208 that contains themodule public key 111 from step 516. Authentication of module public key111 may be preferred in order to ensure that the module public key 111is properly associated with the correct physical module 101, and preventan imposter, hacker, etc. from sending in a fake module public key 111for module 101. After using step 517 to authenticate module public key111, server 105 can record module public key 111 and associated moduleidentity 110 (plus optionally a module public key identity 111 a) in amodule database 105 k. Although not illustrated in FIG. 7, server 105can also send an application message 701 to application 171 i aftersuccessfully recording module public key 111.

Application 171 i operating within an application server 171 can send anapplication message 701 to server 105, and server 105 can receive theapplication message 701. Application message 701 could include a moduleinstruction 502, where the module instruction 502 could comprise anactuator setting 706. Although not illustrated in FIG. 7, moduleinstruction 502 as transmitted or sent by application 171 i orapplication server 171 could include a module identity 110 and/or anactuator identity 152. Actuator setting 706 could include a settingvalue and an actuator identity 152. As discussed below in connectionwith FIG. 8, actuator setting 706 within an application message 701could be received within a secure connection data transfer 802 fromapplication server 171. Thus, in an exemplary embodiment, the actuatorsetting 706 may preferably not be plaintext as transmitted across anetwork such as, but not limited to, the Internet 107 between server 105and application server 171 in an application message 701.

A module instruction 502 (i) from an application 171 i or applicationserver 171, and (ii) within an application message 701 could includeother exemplary values or instructions for a module 101, besides theexemplary actuator setting 706. According to exemplary embodiments, amodule instruction 502 could comprise information for module 101 such as(i) sleep timers or instructions or values for a CPU wake controller 101u, (ii) server address 106 or server identity 206 for communicating witha server 105 (such as sending a different server address 106 for module101 to utilize in future communications), (iii) a new or updated valuesfor set of data reporting steps 101 x, (iv) a new or updated moduleprogram 101 i, (v) software or firmware for operating system 101 h anddevice driver 101 g (including a pointer or reference to a locationwhere the updated module program 101 i could be located), (vi) acalibration value for sensor 101 f or actuator 101 y, (vii) values for aset of cryptographic parameters 126, (viii) software or settings forradio 101 z, (ix) updated cryptographic algorithms 141, (x) a new moduleprivate key 112, (xi) a symmetric key 127, (xii) a pre-shared secret keyvalue 129 a for use in communicating with a wireless network 102 (wherethe pre-shared secret key value 129 a can be the equivalent of a Kivalue in a network supporting ETSI/3GPP standards), (xii) a value for amodule identity 110, (xiii) a value to use in a channel coding 406,(xiv) a security token 401 or settings for using security tokens, and/or(xv) values for a electronic UICC (eUICC). Other possibilities exist aswell for a module instruction 502 without departing from the scope ofthe present invention. After receiving module instruction 502 in aresponse 209 from server 105, module 101 could record the data in moduleinstruction 502 within a nonvolatile memory 101 w or RAM 101 e. In anexemplary embodiment, a eUICC received within a module instruction 502by module 101 could provide the data and parameters for module 101 toconnect with another wireless network 102, which could comprise a secondPLMN.

After receiving application message 701, server 105 can wait for waitinterval 703. As depicted and described in connection with FIGS. 2 and 6a, firewall 104 may be present in a system 700 and/or other systemsdepicted in the present invention, and a firewall 104 could block thetransmission or sending of packets from server 105 to module 101 atarbitrary times. In addition, according to exemplary preferredembodiments, module 101 can enter periods of sleep or dormancy using aCPU wake controller 101 u in order to conserve energy or the life of abattery 101 k, if present. During periods of sleep or dormancy, module101 may not be able to receive packets from server 105. Consequently,server 105 can preferably wait for the wait interval 703 as illustratedin FIG. 7, before sending response 209 which could include the moduleinstruction 502. As illustrated in FIG. 7, the module instruction 502could include an actuator setting 706, but module instruction 502 couldinclude other data as well such as the exemplary module instructions 502described in the previous paragraph.

According to exemplary embodiments, wait interval 703 can vary dependingupon module 101 and monitored unit 119, and wait interval 703 couldcomprise a wide range of values. Module 101 could send a sensor data 604b or a report or a message 208 at exemplary reporting intervals such as,but not limited to, every minute, 10 minutes, hour, 6 hours, daily, orlonger. Wait interval 703 could be associated with the reportinginterval, and the wait interval 703 would end when the next message 208from module 101 is received. If server 105 supports a plurality ofmodules 101, wait interval 703 can be associated with the specificmodule 101 associated with the module instruction 502, possibly by usinga module identity 110 in both a message 208 and an application message701. In other words, server 105 can preferably wait for a message 208from the specific module 101 associated with the module instruction 502before sending the response 209 which could include the moduleinstruction 502. Response 209 could be sent using the source anddestination IP:port numbers depicted and described in connection withFIG. 2.

Upon the receipt of message 208 from module 101 with module identity110, the wait interval 703 can end. As illustrated in FIG. 7, message208 could include a server instruction 414. The server instruction 414in the exemplary embodiment illustrated in FIG. 7 comprises an “update”server instruction 414, and could include a sensor measurement 604 band/or a timestamp 604 a. Sensor measurement 604 b could be obtained bymodule 101 from sensor 101 f before sending message 208, and possiblyafter module 101 wakes from a dormant state using a CPU wake controller101 u. Sensor measurement 604 b could be collected by a module program101 i using a system bus 101 d. As illustrated in FIG. 6 a, a serverinstruction 414 with sensor data 604 b could be within a moduleencrypted data 403 and received by server 105. Server 105 could utilizethe steps illustrated in FIG. 4 to process the received message 208 atthe end of wait interval 703. Sensor measurement 604 b as used by moduleprogram 101 i, server 105, application 171 i, and/or application server171 could represent a different string or number at each element,depending upon encoding rules or encoding schemes utilized by eachelement, but sensor measurement 604 b at each location can representdata or a value collected by a sensor 101 f.

After processing the received message 208 that could include sensor data604 b and/or timestamp 604 a, server 105 can send application 171 ioperating on application server 171 an application message 701 thatincludes an update instruction 704, where update instruction 704 couldinclude sensor data 604 b, module identity 110, and sensor identity 151,if present. Update instruction 704 could include data other than sensordata 604, such as data pertaining to the state of module 101, includingsubcomponents illustrated in FIGS. 1 b and 1 e. Using update instruction704 or a plurality of update instructions 704, application 171 i canaggregate data to generate reports for presentation to user 183 or makedecisions using service controller 171 x. Based on data input inmultiple update instructions 704 over time, application 171 i couldoutput module instruction 502 in an application message 701. Application171 i could record data received in update instruction 704 within anapplication database 171 k, and process the data using a servicecontroller 171 x in order to automatically generate module instructions502 using a plurality of sensor data 604 b for a module 101 or a set ofmodules 101.

After receiving message 208 with server instruction 414, server 105 cansend a response 209 to module 101. Note that response 209 is illustratedin FIG. 7 as being sent after sending update instruction 704 toapplication server 171, but response 209 could also be sent to module101 before sending update instruction 704 to application server 171.Response 209 can include module instruction 502, where moduleinstruction 502 could comprise the actuator setting 706 server 105received from application 171 i, according to an exemplary embodiment.Module instruction 502 could also comprise other data besides actuatorsetting 706 for module 101 in other exemplary embodiments, as outlinedabove. Although not illustrated in FIG. 7, response 209 could includemodule instruction 502 within a server encrypted data 503 using thesteps depicted and described in connection with FIG. 5 a. Moduleinstruction 502 could also include actuator identity 152 associated withactuator setting 706. Response 209 can be formatted as depicted anddescribed in FIGS. 2 and 6 a, such that response 209 can traverse afirewall 104 and be received by module 101 using IP address 204. Networkfirewall 104 is illustrated as a dashed line in FIG. 7, and may beoptionally not be present. But, the use of network firewall 104 may beincluded in a system 100 and/or system 700 and the presence andoperation of a network firewall 104 may be beyond the control of amodule 101, server 105, module provider 109, M2M service provider 108,etc., and thus a system 700 can support a firewall 104 in exemplaryembodiments.

After receiving response 209 with the module instruction 502 andactuator setting 706, module 101 can process the response 209, whichcould also include server encrypted data 503. Module 101 could extractor read actuator setting 706 from the module instruction 502. Moduleinstruction 502 could include an actuator identity 152. Module 101 canuse a module program 101 i to send the actuator setting 706 to theactuator 101 y with actuator identity 152. Actuator setting 706 as sentby module program 101 i may be in a different format or data structurethan actuator setting 706 as sent by application 171 i, but both sets ofdata can achieve the same objective of having an actuator 101 y apply asetting. According to one exemplary embodiment, actuator setting 706 assent by module program 101 i could be an analog voltage along a systembus 101 d, while actuator setting 706 as sent by application 171 i couldbe a string or number. Note that as contemplated herein, the term“actuator data” can include or comprise “actuator setting”.

After applying actuator setting 706, actuator 101 y can send anacknowledgement to module program 101 i. Module program 101 i can thensend a second message 208 to server 105, where message 208 includes aserver instruction 414 of “confirmation”. The server instruction 414 of“confirmation” could be included in a module encrypted data 403according to a preferred exemplary embodiment. Server 105 can receivethe second message 208 with the module encrypted data 403 and decryptthe module encrypted data 403 using a step 413 to extract the serverinstruction 414 of “confirmation”. The second message 208 may includethe actuator identity 152, a timestamp value 604 a, and/or also themodule identity 110. Server 105 can send an application message 701 thatincludes a confirmation 705, where the confirmation can (i) informapplication 171 i that the actuator setting 706 sent to server 105 hasbeen properly and/or successfully applied by module 101 and/or actuator101 y. Confirmation 705 could also include module identity 110 and/oractuator identity 152 and a timestamp value 604 a. Application 171 icould then send an acknowledgement back to server 105 after receivingthe confirmation 705.

According to preferred exemplary embodiments, actuator identity 152 ispreferably globally unique, such that that including an actuatoridentity 152 in any packet would allow a server 105 or application 171 ito lookup a module identity 110 and/or module 101 using the actuatoridentity 152 and a database such as, but not limited to, module database105 k. Similarly, a sensor identity 151 may be globally unique,according to preferred exemplary embodiments such that a sensor identity151 in any packet would allow a server 105 or application 171 i tolookup a module identity 110 and/or module 101 using the sensor identity151 and a database such as, but not limited to, application database 171k.

FIG. 8

FIG. 8 is a simplified message flow diagram illustrating an exemplarysystem with exemplary data transferred between a module and anapplication using a server, in accordance with exemplary embodiments.System 800 can include an application server 171, a server 105, and amodule 101 in connected via a network. The network could comprise theInternet 107. Application server 171 could include an application 171 i,where application 171 i can include logic, algorithms, databases, userinterfaces, and programs for managing a plurality of modules 101 with aplurality of users 183. Application server 171 and application 171 i maybe associated with an M2M service provider 108, and M2M service provider108 could use application 171 i to provide and manage a service withdistributed modules 101 associated with a plurality of monitored units119. Server 105 could belong to a set of servers 105 n, and the set ofservers 105 n could also take the actions described herein for theserver 105.

In an exemplary embodiment, module 101 can derive a public key 111 and aprivate key 112 using step 515. Module 101 can derive the public andprivate keys using step 515 and a set of cryptographic parameters 126.Alternatively, module 101 may have the module public key 111 and moduleprivate key 112 generated outside module 101 and loaded into anon-volatile memory 101 w. Server 105 can utilize step 516 to receive amodule public key 111 from module 101. In an exemplary embodiment,module public key 111 in a step 516 illustrated in FIG. 8 can comprisesa format of the module public key 111 that is different than acertificate 122 that could record a module public key 111. Module publickey 111 in a step 516 could be received in an exemplary format and formillustrated in FIG. 6 b above.

Server 105 can utilize a step 517 to authenticate a message 208 thatcontains the module public key 111 and a module identity 110 received ina step 516. Authentication of module public key 111 may be preferred inorder to ensure that the module public key 111 is properly associatedwith the correct physical module 101 with a module identity 110, andprevent an imposter, hacker, etc. from sending in a fake module publickey 111 for module 101. After using step 517 to authenticate modulepublic key 111, server 105 can record module public key 111 with themodule identity 110 in a module database 105 k, which could alsocomprise a shared module database 105 k illustrated in FIG. 1 h.Although not illustrated in FIG. 8, server 105 can also send anapplication message 701 to application 171 i after successfullyrecording an authenticated module public key 111. Although notillustrated in FIG. 8, a module public key 111 received in step 516 mayalso include a module public key identity 111 a in order to track whichof a plurality of potential module public keys 111 for a module 101 maybe used at any given point in time or with any given message 208.

Also, server 105 is not required to receive module public key 111 frommodule 101 in order to utilize the methods and systems contemplatedherein. Instead of receiving module public key 111 in a message 208 frommodule 101, server 105 could alternatively query another server such as,but not limited to, application server 171 or a server associated withcertificate authority 118 for either module public key 111 or acertificate 122 associated with module 101 using a module identity 110,where module identity 110 could be received in a message 208 at a step516 with or without module public key 111. In addition, server 105 couldhave a list or database table of module identities 110 and module publickeys 111 loaded into a module database 105 k before the message 208 inFIG. 8 is received. After recording module public key 111 and moduleidentity 110, possibly including a module public key identity 111 a,server 105 can wait for wait interval 703. Wait interval 703 couldrepresent the time between reports or messages 208 submitted by module101, and wait interval 703 for an individual module 101 could comprise awide range of values from several times a second to several days orlonger, depending upon the application and/or monitored unit 119. Thewait interval 703 can end when server 105 receives a message 208 frommodule 101 with a module identity 110.

Module controller 105 x within server 105 can receive a message 208 thatincludes a server instruction 414 with sensor data 604 b. The sensordata 604 b and/or server instruction 414 could be included in a moduleencrypted data 403, where decrypting the module encrypted data 403 canuse the module public key 111 submitted in step 516 above and derived bymodule 101 in step 515. According to one exemplary embodiment, moduleencrypted data 403 could be ciphered with a symmetric key 127 that is aderived shared key 129 b from a key derivation function 141 f and modulepublic key 111 received in step 516 (and also server public key 114).Module controller 105 x can process message 208 using the steps depictedand described in connection with FIG. 4 in order to decrypt the moduleencrypted data 403 and obtain the plaintext server instruction 414 andplaintext sensor data 604 b. Although sensor data 604 b is illustratedas the server instruction 414 in FIG. 8, server instruction 414 couldhave other values such data associated with any of the components formodule 101 illustrated in FIG. 1 b and FIG. 1 e. Server instruction 414could be a “query” where module 101 queries for information from server105 or application 171 i, or server instruction 414 could be an alarm orerror notification outside a regular reporting interval. Otherpossibilities for server instruction 414 exist without departing fromthe scope of the present invention. In an exemplary embodiment, serverinstruction 414 could also be a periodic “registration” message with nosubsystem data for module 101 (an also no sensor data 604 b), and a“registration” could be a message for server 105 indicating module 101is awake and online with Internet 107.

Server 105 can establish a secure connection with application server 171and application 171 i using a secure connection setup 801 and a secureconnection data transfer 802. Server 105 can utilize an applicationinterface 105 i to manage the communication with application 171 iand/or application server 171, while a module controller 105 x canmanage communication with a module 101. Alternatively, applicationinterface 105 i and module controller 105 x can be optionally combinedor omitted, such that server 105 and/or a set of servers 105 n performthe actions illustrated in FIG. 8 for application interface 105 i andmodule controller 105 x. Likewise, server 105 and application 171 couldbe combined or operate on the same local area network (LAN) and thus notbe connected via the Internet 107. If server 105 and application 171 arenodes within the same LAN or virtual private network (VPN), then thenetwork connection can also be considered a secure connection (withoutusing encryption between the nodes), since packets routed between thenodes may not need to traverse the Internet 107 and thus the networklayer could provide security. Although secure connection setup 801 isillustrated in FIG. 8 as occurring after message 208 is received byserver 105, secure connection setup 801 could take place before message208 is received by server 105. Secure connection setup 801 could utilizea secure protocol such as, but not limited to, TLS, Secure Sockets Layer(SSL), IPSec, or VPN to establish a secure connection between server 105and application 171 i and/or application server 171, such that datatransferred between the two nodes is encrypted and also not subject toreplay attacks. As contemplated herein, a secure connection can compriseany of a TLS connection, an IPSec connection, a VPN connection, anencrypted connection, and/or a LAN connection between server 105 andapplication server 171 and/or application 171 i, and other possibilitiesexist as well without departing from the scope of the present invention.

Other secure connections may be utilized as well, including a secureshell (SSH) tunnel, future versions of standard secure connections, oralso a proprietary protocol for a secure connection. Secure connectionsetup 801 as illustrated in FIG. 8 may utilize a TLS protocol, such as,but not limited to, TLS version 1.2, TLS version 1.3, etc. Secureconnection setup 801 can include the transfer of a certificate 122 forapplication server 171, and also the transfer of an application publickey 171 w. Server 105 can utilize application public key 171 w toencrypt data received from module 101 in a message 208, such as, but notlimited to, sensor data 604 b. According to one exemplary embodiment,application message 701 could be ciphered with a symmetric key 127 thatcomprises a derived shared key 129 b from at least (i) a key derivationfunction 141 f, (ii) application public key 171 w and server public key114, and (iii) a random number 128 a from either server 105 orapplication server 171.

The message flow in a secure connection setup 801 also illustrates onebenefit of the present invention, where a message 208 can be securelytransferred between module 101 and server 105 using a single UDPdatagram (or less than 3-4 datagrams), while secure connection setup 801may require a plurality of TCP messages in both directions. In otherwords, using a secure connection setup 801 as illustrated in FIG. 8between module 101 and server 105 may not be energy efficient for module101, while using secure connection setup 801 between server 105 andapplication server 171 can be efficient, since the data from a pluralityof modules 101 can be shared over the secure connection setup 801. Alsonote that since module 101 may sleep for relatively long periods suchas, but not limited to, 30 minutes or longer, a new secure connectionsetup 801 would likely be required to support a firewall 104 after eachperiod of sleep, and completing the process of a secure connection setup801 each time module 101 wakes may not be energy or bandwidth efficientfor a module 101.

After completing server connection setup 801, in exemplary embodimentsserver 105 or a set of servers 105 can use a secure connection datatransfer 802 to send a first application message 701, where the firstapplication message 701 could include update instruction 704 thatincludes sensor data 604 b that server 105 received in a message 208.Data within the first application message 701 containing updateinstruction 704 could be ciphered according to the specifications of thesecure connection, such as, but not limited to, TLS or IPSec, and otherpossibilities exist as well. Note that server 105 can decrypt a moduleencrypted data 403 that includes sensor data 604 b and subsequentlyencrypt the sensor data 604 b according to the format required by secureconnection setup 801 for transfer to application 171 i using secureconnection data transfer 802. System 700 can use two different serverpublic keys 114, recorded in the form of a certificate 122 in oneembodiment, with a first server public key 114 used in encrypting and/ordecryption module encrypted data 403 and a second server public key 114used in encrypting and/or decrypting update instruction 704. The twoserver public keys 114 can be used by server 105 in a key derivationfunction 141 f to derive two shared secret keys 129 b used in asymmetric ciphering algorithm 141 b for both secure connection datatransfer 802 and module encrypted data 403 (with a different derivedshared public key 129 b with module 101 and application server 171,respectively).

In another embodiment, server 105 can use the same server public key 114to both decrypt module encrypted data 403 and encrypt update instruction704. Other possibilities exist as well for server 105 to use a serverpublic key 114 to (i) encrypt update instruction 704, such as using anasymmetric ciphering algorithm 141 a, and (ii) decrypt module encrypteddata 403 without departing from the scope of the present invention. Asillustrated in FIG. 8, server 105 can receive an acknowledgement 804after sending the first application message 701, with update instruction704 that includes sensor data 604 b, where acknowledgement 804 cansignal that application message 701 with update instruction 704 has beenreceived by application 171 i and/or application server 171. Althoughnot illustrated in FIG. 8, the acknowledgement 804 could optionallyinclude a module instruction 502 for module 101. As contemplated herein,a module instruction 502 can also include a timestamp value 604 a, suchthat a module 101 can determine when the module instruction 502 wasgenerated or processed by a source of the module instruction 502 such asan application 171 i or a server 105.

After receiving message 208, server 105 can then send a response 209.Response 209 could be sent before or after server 105 sends updateinstruction 704 to application 171 i using secure connection datatransfer 802. Response 209 can include a server encrypted data 504 thatincludes a module instruction 502. Module instruction 502 could be (i)processed by server 105, (ii) obtained by server 105 from application171 i in an application instruction 701, and/or (iii) read by server 105from a shared module database 105 k. In other words, a secure connectiondata transfer 802 may be utilized by a server 105 and either (i) anapplication server 171 or (ii) a shared module database 105 k to inorder for server 105 or a set of servers 105 n to receive a moduleinstruction 502 with a module identity 110 for a module 101. Accordingto an exemplary preferred embodiment, server 105 waits for a response oracknowledgement 804 from application 171 i to application message 701(where application message 701 could comprise a polling request 1302described below) before sending response 209 to module 101. One reasonfor waiting for a response or acknowledgement 804 from application 171 iis that response or acknowledgement 804 from application 171 i couldinclude a module instruction 502, and the module instruction 502 maypreferably be included in a response 209. Other possibilities exist aswell without departing from the scope of the present invention.

FIG. 8 can also illustrate a benefit of an exemplary embodimentcontemplated herein. According to an exemplary embodiment, (i) server105 and application server 171 can utilize a first set of cryptographicalgorithms 141 for sending and receiving data between server 105 andapplication server 171, such as, but not limited to, with a secureconnection data transfer 802, and (ii) server 105 and module 101 canutilize a second set of cryptographic algorithms 141 for sending andreceiving data between server 105 and module 101, such as using thesecond set of cryptographic algorithms 141 for a module encrypted data403 and/or server encrypted data 504. In an exemplary embodiment, server105 and application server 171 can use RSA algorithms 153 in the firstset of cryptographic algorithms 141, while server 105 and module 101 canuse ECC algorithms 154 in the second set of cryptographic algorithms141. As one example, server 105 can use an (i) RSA-based asymmetricciphering algorithm 141 b and first server public key 114 with theapplication server 171 to securely transfer a first symmetric key 127with application server 171, and (ii) an ECC-based asymmetric cipheringalgorithm 141 b and second server public key 114 with the module 101 tosecurely transfer a second symmetric key 127 with a module 101.

Other possibilities exist as well for a server 105 to use a differentcryptographic algorithms 141 and/or cryptographic parameters 126 foreach of application server 171 and module 101. (A) Server 105 andapplication server 171 could use a first set of cryptographic parameters126 for use with cryptographic algorithms 141 for an application message701 with related server digital signatures, while (B) server 105 andmodule 101 could use a second set of cryptographic parameters 126 foruse with cryptographic algorithms 141 for a module encrypted data 403and/or server encrypted data 504 and related digital signatures. Thefirst set of cryptographic parameters 126 and the second set ofcryptographic parameters 126 are illustrated in FIG. 8. In order tomaximize security between servers such as server 105 and applicationserver 171, the first set of parameters 126 could specify (i) a longerpublic and private key length, (ii) a shorter key expiration time 133,(iii) a longer secure hash algorithm (such as, but not limited to, anexemplary 384 or 512 bits), (iv) a longer symmetric ciphering key 127length (such as, but not limited to, an exemplary 192 or 256 bits), (v)the use of or values for RSA algorithm 153 and a modulus, (vi) the useof Diffie Hellman key exchange or a first key exchange algorithm for akey derivation function 141 f and key exchange, (vii) the use of orvalues for a second symmetric ciphering algorithm 141 b for symmetricciphering, (viii) the use of or values for an RSA digital signaturealgorithm or a second digital signature algorithm, and similar settings.

In accordance with a preferred exemplary embodiment, in order tominimize processing power and/or energy usage required for a module 101,the second set of cryptographic parameters 126 illustrated in FIG. 8could specify (i) a shorter public and private key length, (ii) a longerkey expiration time 133, (iii) a shorter secure hash algorithm (such as,but not limited to, an exemplary 224, 256, or 160 bits), (iv) a shortersymmetric ciphering key 127 length (such as, but not limited to, anexemplary 128 bits), and (v) the use of an ECC algorithm 154, (vi) theuse of or values for an ECC standard curve 138 and/or ECC parameters137, (vii) the use of or values for ECDH 159 or a second key exchangealgorithm for key derivation and exchange, (vii) the use of or valuesfor of a second symmetric ciphering algorithm 141 b for symmetricciphering, (viii) the use of or values for of ECDSA 158 or a seconddigital signature algorithm for digital signatures, and similarsettings. In an embodiment, the first set of parameters 126 (which canbe used by server 105 and application server 171) and the second set ofparameters 126 (which can be used by server 105 and module 101) can bothspecify the use of elliptic curve cryptographic algorithms 141, but withdifferent sets of parameters 126 such that the first set of parameters126 is selected for server to server communications, and the second setof parameters 126 is selected for communications between a server 105and a module 101. In another embodiment, the first set of parameters 126and the second set of parameters 126 can both specify the use of RSAbased cryptographic algorithms 141, but with different sets ofparameters 126 such that the first set of parameters 126 is selected forserver to server communications, and the second set of parameters 126 isselected for communications between a server 105 and a module 101.

In this manner, the use of cryptographic algorithms 141 between (i)server 105 and application server 171 and (ii) server 105 and module 101can be optimized given different constraints for processing power andenergy consumption for server 105, application server 171, and a module101. In addition, an application server 171 may use cryptographicalgorithms 141 and parameters 126 that may not be compatible withcryptographic algorithms 141 and parameters 126 used by a module 101,and server 105 can use cryptographic algorithms 141 and at least the twosets of cryptographic parameters 126 illustrated in FIG. 8 to enable atranslation or conversion of encrypted data and digital signaturesbetween a module 101 and an application server 171, thereby establishingconnectivity between a module 101 and an application server 171 througha server 105. According to an exemplary embodiment, server 105 canfunction as a gateway between application server 171 and/or application171 i and a plurality of modules 101.

FIG. 9

FIG. 9 is a simplified message flow diagram illustrating exemplary datatransferred between (i) a server and an application and between (ii) aserver and a module, in accordance with exemplary embodiments. Anapplication server 171, a server 105, and a module 101 can send andreceive data illustrated in FIG. 9. Application server 171 can includeapplication 171 i and use an Internet Protocol address and port(IP:port) number 903 for sending and receiving data with server 105.Server 105 can include an application interface 105 i and a modulecontroller 105 x, where application interface 105 i can access a firstserver IP:port number 901 for communicating with application server 171,and module controller 105 x can access a second server IP:port number207 for communication with module 101. In accordance with a preferredexemplary embodiment, multiple modules 101 can send data to serverIP:port number 207, and thus server 105 and/or a module controller 105 xcan use a single IP:port number 207 to communicate with a plurality ofmodules 101. In addition, server 105 could specify that one subset ofmodules 101 communicate with a first IP:port number 207, and a secondsubset of modules 101 communicate with a second IP:port number 207, etc.In another embodiment, a set of servers 105 n could comprise the server105 illustrated in FIG. 8. Module 101 can utilize an IP:port number 204for sending and receiving data with a server 105.

As illustrated in FIG. 9, a symmetric firewall 104 could be includedbetween module 101 and server 105. The of IP addresses and port numbersin packets between server 105 and module 101 illustrated in FIG. 9 couldalso represent routing if a firewall 104 is present and functions as asymmetric firewall without NAT routing. In this case, firewall 104 maynot perform network address translation on source and destination IPaddresses and/or port numbers, but rather filter packets based onpre-determined rules. For example, a firewall 104 that is a symmetricfirewall could drop inbound packets from IP:port number 207 to module101 unless module 101 had previously sent a packet to IP:port number 207within a firewall port binding timeout value 117. Alternatively, afirewall 104 may be optionally omitted, and in this case the destinationaddress in packets sent from server 105 to module 101 could include theIP address 202 of module 101, which is also the case illustrated in FIG.9. In other words, FIG. 9 illustrates an exemplary routing of packets inthe cases that (i) firewall 104 is a symmetric firewall, and (ii)firewall 104 is optionally not present.

Server 105 can receive a message 208 from a module 101. Server 105 canuse a module controller 105 x to receive the message, and modulecontroller 105 x could also be identified as a process operating onserver 105 that binds to the port number in IP:port 207, which couldinclude a port number 205. Message 208 could include module identitystring 904, which could represent a temporary or transient string ornumber used by module 101 and server 105 to associate and identifymessage 208 with module identity 110. Module identity string 904 couldalso comprise a module identity 110. Server 105 can use module identitystring 904 to select a symmetric key 127 in order to decrypt moduleencrypted data 403, since module identity string 904 may preferably benot encrypted. Server 105 and module 101 could use an algorithm withincryptographic algorithms 141 in order to process a module identitystring 904, whereby the module identity string 904 can be convertedbetween (i) a module identity 110 in a form such as, but not limited to,a serial number, IMEI, or related identifier for module 101, and (ii) amodule identity string 904 in a message 208 that can traverse theInternet 107.

Message 208 as received by server 105 can also include a serverinstruction 414 within a module encrypted data 403, where the moduleencrypted data 403 could be ciphered using a symmetric key 127. Theserver instruction 414 illustrated in FIG. 9 can be an exemplary“update” instruction, where the “update” instruction can include asecurity token 401 and sensor data 604 b. Sensor data 604 b can includea sensor identity 151 and a sensor measurement. Server instruction 414within a message 208 could include many other values besides an update,including a registration, a query, an alarm or error notification,configuration request, software request, confirmation, or other valuesalso depicted and described in connection with a server instruction 414in FIG. 4. A security token 401 can comprise a random number 128 aprocessed by a random number generator 128 and can be preferably notreused and therefore can keep message 208 unique and not subject toreplay attacks. In exemplary embodiments, a UDP protocol may beimplemented for message 208, and the connectionless UDP protocol mayrequire a module 101 to send retransmissions of a UDP datagram 601 a formessage 208, if module 101 does not receive a response 209 within aspecified timer period.

If the UDP Lite protocol is utilized for message 208, with multiplecopies of UDP Lite datagram 601 a received in an exemplary embodiment,then each UDP Lite datagram 601 a could be different, depending on thepresence of bit errors in the datagram, and thus server 105 can usetimer 905 to collect the multiple copies of UDP Lite datagram 601 awithin the timer 905 period and process the multiple packets received,including combining the data across multiple packets, in order toeliminate bit errors within the datagrams and collect an error-freemessage 208. Packets for a message 208 received outside timer 905 couldbe dropped by server 105, and the timer 905 could start when the firstdatagram 601 a for a message 208 was received by server 105.

After receiving message 208, server 105 use the steps outlined in FIG. 5a to process message 208 and read the plaintext server instruction 414,such as, but not limited to, the sensor data 604 b illustrated in FIG.9. Other possibilities exist as well for sensor data 604 b or values orinformation inside a server instruction 414. Server 105 can then send ortransmit a first application message 701 to application server 171 thatincludes data received from the server instruction 414 from module 101in message 208. The data received in the server instruction 414 frommodule 101 could be included by server 105 in an update instruction 704.An application 171 i operating within application server 171 orassociated with application server 171 could receive the firstapplication message 701. The first application message 701 could beformatted according to a TCP datagram 902, although other possibilitiesexist as well including UDP.

In accordance with an exemplary preferred embodiment, the firstapplication message 701 may include an update instruction 704 withsensor data 604 b, although update instruction 704 could also contain orinclude other data pertaining to module 101 besides sensor data 604 b,such as a state of a component with module 101, a state of a softwareroutine, variable, or parameter associated with module 101. The firstapplication message 701 sent from server 105 to application server 171could be a datagram within a secure connection data transfer 802 asillustrated in FIG. 8. Sensor data 604 b could be sent by server 105using application server public key 171 w, such as either (i) mutuallyderiving a common shared key 129 b between server 105 and application171 i using a key derivation function 141 f, where the shared key 129 bcould function as a symmetric key 127 with a symmetric cipheringalgorithm 141 b, or (ii) server 105 sending a symmetric key 127 toapplication server 171 using an asymmetric ciphering algorithm 141 a andthe application server public key 171 w. Message 805 in FIG. 8 with thelabel of “Client Key Exchange” can comprise server 105 sending asymmetric key 127 (or value or cryptographic parameters 126 for derivingsymmetric key 127) to application server 171, where the symmetric key127 can be used by server 105 to encrypt update instruction 704illustrated in FIG. 9. As contemplated herein, a random number 128 ainput into a set of cryptographic algorithms 141 d can also beconsidered a cryptographic parameter 126. Also, a random number 128 ainput into a key derivation function 141 f can comprise a cryptographicparameter 126.

In accordance with an exemplary preferred embodiment, applicationmessage 701 may include (i) module identity 110 encrypted within secureconnection data transfer 802 and also a server identity 206 that is notencrypted. In this manner, application server 171 can use serveridentity 206 to select a symmetric key 127 (possibly sent in message 805as described in the paragraph above) in order to decrypt the encrypteddata in update instruction 704. Application server 171 can receive thefirst application message 701 sent by server 105 and process themessage. The message processing by application server 171 could usesteps similar or equivalent to the steps utilized by server 105illustrated in FIG. 4, in order to extract a plaintext applicationinstruction 704. Although not illustrated in FIG. 9, application 171 icould record data received within application instruction 704 and recordthe data in an application database 171 k. Application 171 i could usethe data received in application instruction 704 or a plurality ofapplication instructions 704 to generate reports, graphs, emails, orother user information for a user 183.

Upon processing the information within application instruction 704,application 171 i or application server 171 could send a secondapplication message 701 to server 105, as illustrated in FIG. 9. Thesecond application message 701 could be sent using a secure connectiondata transfer 802, and could include a module instruction 502 and amodule identity 110. The second application message 701 can use theIP:port number 903 as a source IP:port number for the second applicationmessage 701, where IP:port number 903 also represented a destinationIP:port number for the first application message 701. The secondapplication message 701 can use the IP:port number 901 as thedestination IP:port number, where IP:port number 901 was the source portnumber in the first application message 701. The module instruction 502within the second application message 701 could include an actuatorsetting 706. The module instruction 502 within the second applicationmessage 701 can comprise other data or module instructions 502 for amodule 101 that do not include an actuator setting 706, such as theexemplary data depicted and described in connection with FIG. 5 a.

Server 105 or a set of servers 105 n can receive the second applicationmessage 701, and the message could be received using an IP:port number901. Although an IPv4 address is shown in FIG. 9, and IPv6 address couldbe utilized as well. Server 105 could decrypt a body 602, that containsmodule identity 110 and a module instruction 502, using algorithmsspecified according to a secure connection data transfer 802. Asdepicted and described in FIG. 8, a first set of cryptographicparameters 126 with cryptographic algorithms 141 could be used with anapplication message 701 and a second set of cryptographic parameters 126with cryptographic algorithms 141 could be used with server encrypteddata 504 and/or module encrypted data 403.

After extracting a plaintext module instruction 502 and module identity110 from a body 602 in the second application message 701, server 105can take steps to process the data and create a response 209 for module101. Server 105 can record or query for information pertaining to module101 using module identity 110 in a module database 105 k. In accordancewith exemplary embodiments, server 105 can use module identity 110received in the second application message 701 to select (i) a symmetrickey 127 used by module 101 for encrypting and/or decrypting a serverencrypted data 504 that can include the module instruction 502, (ii) adestination IP:port number 204 for sending a response 209, (iii) asource IP:port number 207 for sending a response 209, (iv) adetermination if a wait interval 703 is required before sending response209, (v) a value for a security token 401, and (vi) at least one valuefor a set of cryptographic parameters 126 for use with a cryptographicalgorithms 141 in communications with module 101. In one embodiment,different modules 101 connected to server 105 may use differentcryptographic parameters 126, and server 105 can select the appropriateset of cryptographic parameters 126 for a module 101 using (a) themodule identity 110 received in the second application message and (b) amodule database 105 k. Server 105 can also use module identity 110received in the second application message 701 to select (vii) atransport protocol for a response 209, such as, but not limited to, TCP,UDP, or UDP Light, and (viii) a channel coding 406 parameter such as,but not limited to, a block code, turbo code, or forward errorcorrection coding scheme. Server 105 can use module identity 110received in an application message 701 such as the second applicationmessage 701 illustrated in FIG. 9 to format and/or send a response 209to module 101.

According to a preferred exemplary embodiment, server 105 may receive anapplication message 701 with data for a module 101 at arbitrary times.According to a preferred exemplary embodiment, server 105 can use moduleidentity 110 received within an application message 701 to determine (i)if server 105 should wait until a wait interval 703 expires beforesending response 209 (where the wait interval 703 can end upon receiptof a message 208 from a module 101 with the module identity 110 receivedin the application message 701) or (ii) if server 105 can send response209 right away (such as a firewall port binding timeout period 117 hasnot expired), where response 209 includes the module instruction 502received in the application message 701. Firewall port binding timeoutvalue 117 (or a time value associated with firewall port binding timeoutvalue) can be recorded for module identity 110 in a module database 105k.

After (A) using module identity 110 received within application message701 to select values to process a response 209 and timing for sending aresponse 209, then (B) server 105 can send response 209 as illustratedin FIG. 9, where the specific response 209 in FIG. 9 is exemplary.Response 209 can include a server encrypted data 504. Server encrypteddata 504 can include module instruction 502. The exemplary response 209illustrated in FIG. 9 includes an actuator setting 706 within moduleinstruction 502, but other possibilities exist as well. Note that theuse of server encrypted data 504 is optional within a response 209, andserver 105 could send module instruction 502 as plaintext. However, inthis case of module instruction 502 being sent as plaintext, server 105can preferably include a server digital signature 506 such that module101 can verify the server digital signature 506 using the server publickey 114 and confirm the module instruction 502 was transmitted by server105. In accordance with exemplary preferred embodiments, (i) a messagefrom module 101 to server 105 that does not include a module encrypteddata 403 preferably includes a module digital signature 405, and (ii) aresponse 209, message sent back, datagram, or packet from server 105 tomodule 101 that does not include a server encrypted data 504 preferablyincludes a server digital signature 506. If data is not encrypted withina packet and the packet includes plaintext instructions such as a moduleinstruction 502 or a server instruction 414, then, in accordance withpreferred exemplary embodiments, the receiving node can preferablyverify the identity of a sender using (i) a digital signature, (ii) anidentity, and (iii) a public key, where the digital signature andidentity can be included in the packet.

Response 209 sent from server 105 to module 101 could include a checksum603. Since firewall 104 may comprise a symmetric firewall 104 (that maynot perform network address translation routing), the destinationaddress within IP:port 204 in response 209 illustrated in FIG. 9 maymatch the IP address 202 used by module 101. In this case, where thedestination IP:port in response 209 includes IP address 202, a checksum603 sent by server 105 can be equal to a checksum 603 received by module101. In accordance with exemplary embodiments, response 209 istransmitted or sent by server 105 within a firewall port binding timeoutvalue 117 after message 208 was received by server 105. In other words,if a firewall port binding timeout value 117 was equal to an exemplary20 seconds for UDP packets, the response 209 illustrated in FIG. 9 wouldpreferably be sent in less than 20 seconds after receiving the previousmessage 208.

FIG. 10

FIG. 10 is a flow chart illustrating exemplary steps for a set ofservers to communicate with a module, in accordance with exemplaryembodiments. The exemplary steps illustrated in FIG. 10 could beimplemented in either a collection of servers 105 (such as, but notlimited to, the two exemplary servers illustrated in FIG. 1 h), wherethe collection of servers 105 comprise a set of servers 105 n. Or, a setof servers 105 n can comprise a single server 105 with only one memberin the set of servers 105. The members and numbers of servers 105 in aset of servers 105 n can also change over time. In other words, overtime such as when a plurality of module public keys 111 could begenerated for various needs of a module 101 or a system such as, but notlimited to, system 100, module 101 may communicate with multiple serversin some embodiments.

FIG. 10 illustrates an exemplary embodiment where a set of servers 105 ncan authenticate module 101 using a module identity 110 and subsequentlyreceive a plurality of module public keys 111 over time. As depicted anddescribed in FIG. 1 h, a set of servers 105 n can comprise at least onserver 105. New module public keys 111 are generated for the variouspurposes contemplated herein, including (i) periodically rotating moduleprivate keys 112 for security, (ii) changing a set of cryptographicparameters 126 used with the keys in order to increase security (where anew set of cryptographic parameters 126 can require the use of a newmodule public key 111 and new module private key 112), (iii) change ofownership and/or control of module 101 such that the previous moduleprivate key 112 may not longer be considered secure, and (iv) the firsttime module 101 sends in a module public key 111. Other possibilitiesfor reasons that a set of servers 105 n can receive and authenticateand/or verify a module public key 111 are possible as well withoutdeparting from the scope of the present invention.

At step 1001, a server 105 and/or a set of servers 105 n can receive andverify a module public key 111 is associated with a module identity 110that is recorded within server 105, potentially in a module database 105k. Module database 105 k could also be a shared module database 105 k asillustrated in FIG. 1 h. The module public key 111 could be receivedfrom module 101 in a message 208 that includes the module identity 110.If a server 105 has not previously record module identity 110 receivedin a message 208 at step 1001, potentially in a module database 105 k,then server 105 could query for data to authenticate module public key111 with module identity at step 1001. A server 105 could query otherservers such as, but not limited to, an application server 171, acertificate authority 118, and/or a server associated with M2M serviceprovider 108 or module provider 109. The other exemplary servers listedin the previous sentence could also comprise members of a set of servers105 n in some embodiments, but in other embodiments an applicationserver 171 and a certificate authority 118, etc. may not be members ofthe set of servers 105. Exemplary details for the steps to verify areceived module public key 111 are also depicted and described inconnection with step 1202 of FIG. 12, and step 517 of FIG. 5 b. Inaccordance with an exemplary embodiment, the received module public key111 can be verified using any of a shared secret key 510, a moduledigital signature 405, or a certificate 122. A server 105 could also usean initial set of cryptographic parameters 126 at step 1001, where theinitial set or first set of cryptographic parameters 126 could bepre-agreed between module 101 (possibly through module provider 109) andserver 105 (possibly through M2M service provider 108).

According to an exemplary preferred embodiment, (i) the first time aserver 105, including any server in a set of servers 105, receives anymodule public key 111 for module identity 110, the module public key 111can be verified using a certificate 122, and (ii) a subsequent timeserver 105 receives a module public key 111 for module identity 110, themodule public key 111 can be verified using either a shared secret key510 or a module digital signature 405, where (i) the module digitalsignature 405 is processed by server 105 using a prior module public key111 (i.e. received before step 1001), and (ii) the prior module publickey 111 had also been previously verified. In the embodiment where areceived module public key 111 at step 1001 is verified using a priormodule public key 111 and a module digital signature 405 (ascontemplated in the previous sentence), a message 208 including themodule digital signature 405 may also preferably include a module publickey identity 111 a such that server 105 can properly lookup, query, orobtain the correct prior module public key 111 with module public keyidentity 111 a to use with a digital signature algorithms 141 d toverify the module digital signature 405 received in the message 208. Inother words, when a plurality of module public keys 111 may be utilized,server 105, possibly within a set of servers 105 n, can use a modulepublic key identity 111 a to track which module public key 111 iscurrently being used with either a module digital signature 405 or anasymmetric ciphering algorithms 141 a.

After receiving and verifying module public key 111 and module identity110 at step 1001, a server 105 and/or a set of servers 105 n can receivea message 208 that includes module identity 110 at step 1002. Themessage 208 could include a server instruction 414 or a module encrypteddata 403. In an exemplary embodiment, server 105 can receive othermessages 208 and module public keys 111 both before and after steps 1001and step 1002, as well as other steps contemplated herein. In otherwords, the various messages and responses illustrated in Figures hereincan comprise subsets of all messages and responses, such that thesubsets comprise embodiments of the present invention. At step 1003,server 105 can send a response 209, where the response can include asecond set of cryptographic parameters 126. The response 209 can be sentin a packet with a source IP:port number and a destination IP:portnumber, and the destination IP:port number in the packet can be equal toor the same as the source IP:port number for a packet received inmessage 208 at step 1002.

In an exemplary embodiment, the second set of cryptographic parameters126 are sent to a module 101 with module identity 110 only after themodule public key 111 has been verified in a step 1001. In this manner,the cryptographic parameters 126 may be more securely held (i.e. notdisclosed to unauthorized parties). Further, the cryptographicparameters 126 in a response 209 sent at step 1003 may also optionallybe encrypted using the module public key 111 received at step 1001. Inone embodiment, the module public key 111 received in step 1001 can beused to derive or transfer a symmetric key 127, and the symmetric key127 could be used with a symmetric ciphering algorithms 141 b to cipherthe second cryptographic parameters 126 sent in a response 126.

At step 1004, a set of servers 105 n can receive over time a series ofmodule public keys 111 associated with module 101 using module identity110. Members of the series of module public keys 111 can be different,representing different module public keys 111 for the module identity110, and the numbers and/or strings in the module public keys 111 can bedifferent. The series of different module public keys 111 can compriseat least a first module public key 111 for module identity 110 and asecond module public key 111 for module identity 110, where the twomodule public keys 111 are received at different times, such as, but notlimited to, exemplary values of a week, a month, or a year apart, andother times between members of the series of module public keys arepossible as well. An exemplary format for a server 105 to receive amodule public key 111 is illustrated in the exemplary message 208depicted and described in connection with FIG. 6 b, and otherpossibilities exist as well. Different members of the set of servers 105n can receive different module public keys 111 in the series of modulepublic keys 111 for the module identity 110. Although not illustrated inFIG. 10, the set of servers 105 n can also receive additional messages208 and send additional responses 209 during step 1004, such as whenmodule 101 and the set of servers 105 n continue to operate over timeuntil step 1005 below. The module identity 110 received with a firstmodule public key 111 in the series may have a different value, string,or number than the module identity 110 received with a second modulepublic key 111 in the series, but different values, strings, or numbersfor module identity 110 can used for the same physical module 101, andthe different values for module identity 110 can be associated with aunique serial number for a module 101, and other possibilities exist aswell.

A module 101 could generate, process, or derive each of the differentmodule public keys 111 in the series of different module public keys 111using a set of cryptographic algorithms 141, the cryptographicparameters 126 sent at step 1003, and a random number generator 128.Each member of the series of module public keys 111 could be received ina message 208 that could also include a module public key identity 111 ain order to track the module public keys 111. In an exemplaryembodiment, a server 105 at step 1004 can also receive a third set ofcryptographic parameters 126 from module 101, such that the third set ofcryptographic parameters 126 received can specify how server 105 can usea set of cryptographic algorithms 141 in order to either (i) use atleast one module public key 111 in the series form step 1004, and/or(ii) communicate with module 101. The third set of cryptographicparameters 126 could be sent in a module encrypted data 403. Note thatthe second set of cryptographic parameters 126 sent by a server 105 atstep 1003 could intersect with a third set of cryptographic parameters126 received by server 105 with a module public key 111 at step 1004.

In an exemplary embodiment, a second set of cryptographic parameters 126sent by a server 105 at step 1003 could include a list of secure hashalgorithms, and elliptic curve names, and a third set of cryptographicparameters received by server 105 in a step 1004 can include a selectionby module 101 of a specific secure hash algorithm and an elliptic curvename from the first set of cryptographic parameters. Other possibilitiesexist as well, and each of the second set and third set of cryptographicparameters 126 can include more than a list of secure hash algorithmsand elliptic curve names, such as but not limited to (i) the name orvalue for a symmetric ciphering algorithm 141 b, (ii) parameters orvalues for a module random seed file 139, (iii) the name or value for anasymmetric ciphering algorithm 141 a, (iv) the name or value for adigital signature algorithm 141 d, (iv) a value for a key pairgeneration algorithm, and/or (v) a value for a key derivation function141 f. The selection of the third set of cryptographic parameters 126 bymodule 101 could be made based on the capabilities of cryptographicalgorithms 141 in a module 101. In an exemplary embodiment, the thirdset of cryptographic parameters 126 received by server 105 at step 1004comprises a subset of the second cryptographic parameters 126 sent byserver 105 at step 1003. After receiving the second cryptographicparameters at step 1004, server 105 can record and implement the thirdset of cryptographic parameters 126 in future communications with module101 (until possibly a different or new third set of cryptographicparameters 126 are possibly received by a server 105 in a message 208 ata future time). Note that the use of a third set of cryptographicparameters 126 at step 1004 may optionally be omitted (as illustrated inFIG. 10), such that the second set of cryptographic parameters 126 fromstep 1003 are used by module 101 at step 1004.

At step 1005, a server 105, possibly in the set of servers 105, canreceive a module instruction 502 and a module identity 110. In oneembodiment, server 105 could poll another server, process, or databasein order to receive the module instruction 502 and module identity 110,such as, but not limited to, sending a polling request or query in astep 1302 depicted and described below in connection with FIG. 13 andFIG. 14. The response received to the poll or query could be the receiptof a module instruction 502 and module identity 110 in a step 1005,possibly through using a step 1303 illustrated in FIG. 13 and FIG. 14.In another embodiment for step 1005, a server 105 could receive anapplication message 701 from an application server 171, where theapplication message 701 can include the module instruction 502 and themodule identity 110. The module instruction 502 for module 101 withmodule identity 110 could be for any reason that application 171 iand/or user 183 prefers to change a state of module 101, including theexemplary reasons depicted and described in connection with FIG. 7. Byreceiving module instruction 502, server 105 can enable the remote orexternal control of a module 101, which may be important for successfuloperation of module 101. At step 1005, server 105 can record moduleinstruction 502 in memory 105 e or a module database 105 k.

Although not illustrated in FIG. 10, for the embodiment where server 105receives a module instruction 502 in an application message 701 fromapplication server 171, server 105 could then use a wait interval 703,to wait for the next message 208 from module 101. A wait interval 703 asdepicted and described in connection with FIG. 7, and server 105 canwait after step 1005 and before step 1006, or until a next message 208is received with the module identity 110. In many embodiments, module101 may not be continuously connected with server 105 due to any of (i)the use of sleep or dormant states, (ii) periodic outages of networkconnectivity through a network 102 and/or the Internet 107, and/or (iii)firewall rules on a firewall 104 that would prevent outbound packetsfrom server 105 from reaching module 101. Although not illustrated inFIG. 10, server 105 could attempt to send a packet such as datagram 601b to module 101 at step 703 in FIG. 10, and if module 101 does not sendback a message 208 with a server instruction 414 of a confirmationand/or acknowledgement (potentially for the reasons listed in the abovesentence), then server 105 could also then continue to wait using a waitinterval 703.

At step 1006, server 105 can receive the next message 208 from module101, where message 208 preferably includes the module identity 110 andthe module identity 110 can correspond to the module identity 110received at steps 1005, 1004, and 1001. The next message 208 illustratedin FIG. 10 at step 1006 could be for any reason. Server 105 can use thereceipt of next message 208 at step 1006 as confirmation that module 101is in an active state and that communication is possible through theInternet 107, firewall 104, and network 102. The next message 208 atstep 1006 may preferably include at least one of (i) module encrypteddata 403 that is ciphered with a symmetric key 127 and (ii) a moduledigital signature 405. In this manner, server 105 can verify or confirmthat the next message 208 at step 1006 is from a module 101 with amodule identity 110.

At step 1007, server 105 can send a second response 209 that includesthe module instruction 502, where response 209 can be sent to a module101 with module identity 110, and response 209 can be sent in afterreceiving the next message from step 1006. Note that the second response209 should preferably be sent before the expiration of a firewallport-binding timeout value 117. The second response 209 could includeserver encrypted data 504, where the module instruction 502 is includedin the server encrypted data 504. Alternatively, module instruction 502could be sent a plaintext in the second response 209, and in this casethe second response 209 can preferably include a server digitalsignature 506. Although not illustrated in FIG. 10, after sending thesecond response 209 using a step 1007 illustrated in FIG. 10, the set ofservers 105 n (of which a server 105 can be a member) can then alsoreceive a confirmation with a timestamp 604 a from module 101 withmodule identity 110. The set of servers 105 n could then send thetimestamp 604 a and module identity 110 to an application server 171that originated the module instruction 502, thereby informing theapplication server 171 when the module 101 executed the moduleinstruction 502. Other possibilities exist as well to those of ordinaryskill in the art without departing from the scope of the presentinvention.

FIG. 11

FIG. 11 is a flow chart illustrating exemplary steps for a set ofservers to communicate with a module and an application server, inaccordance with exemplary embodiments. The exemplary steps illustratedin FIG. 11 could be implemented in either a collection of servers 105(such as, but not limited to, the two servers 105 illustrated in FIG. 1h), where the collection of servers comprise a set of servers 105 n. Or,a set of servers can comprise a single server 105 with only one memberin the set of servers 105 n. In an exemplary embodiment, a set ofservers 105 n could derive the set of server's own server public key 114and server private key 105 c using a set of cryptographic algorithms141, a random number generator 128, and a set of cryptographicparameters 126. The set of servers 105 n could use steps similar to step515 for a module 101 in order to derive one or more server private keys105 c. According to an exemplary preferred embodiment, a set of servers105 n can use a plurality of public and private key pairs in order toefficiently and securely communicate through systems such as, but notlimited to, those illustrated in system 100, system 199, system 700,system 800, system 1200, and/or system 1300.

A server public key 114 could be recorded in the form of a certificate122 an optionally signed by a certificate authority 118, and thecertificate 122 may also optionally include a set of cryptographicparameters 126 associated with a server public key 114. In anembodiment, a certificate 122 can include a subset of the set ofcryptographic parameters 126 associated with the server public key 114,and other members of the set outside the subset can be sent to a module101 in a server encrypted data 503. In one embodiment, a server publickey 114 is kept confidential and not shared with other entities besidesa set of modules 101 and/or application server 171. In an exemplaryembodiment, the server public key 114 is only transmitted to the set ofmodules 101 within a server encrypted data 503, in order to increase thesecurity of a system contemplated herein. Different pairs of keys withina plurality of public and private key pairs for a set of servers 105 ncan utilize different sets of cryptographic parameters 126. An exemplaryuse for a set of servers 105 n using different pairs of server publickey 114 and server private key 105 c with different parameters 126 isillustrated in FIG. 11, and other possibilities for the use of multiplepairs of public and private keys are possible as well without departingfrom the scope of the present invention.

At step 1101, in an exemplary embodiment a set of servers 105 n canestablish a secure connection with at least one application server 171using a first server private key 105 c and a first set of cryptographicparameters 126. The secure connection in step 1101 could be establishedthrough a secure connection setup 801 illustrated in FIG. 8. The firstset of cryptographic parameters 126 could specify multiple values acrossa set of algorithms comprising (i) asymmetric ciphering algorithms 141a, (ii) symmetric ciphering 141 b algorithms, (iii) secure hashalgorithms 141 c, (iv) digital signature algorithms 141 d, (v) key pairgeneration algorithms 141 e, and/or (vi) a key derivation function 141f. The first server private key 105 c could be utilized at step 1101 byany of (i) generating a server digital signature 506 that is sent to anapplication server 171, (ii) receiving a symmetric key 127 for thesecure connection, where the symmetric key 127 is decrypted by a set ofservers 105 n using the first server private key 105 c, (iii) input intoa key derivation function 141 f including using ECIES with the firstserver private key 105 c to obtain a derived shared secret key 129 b,and (iv) the first server private key 105 c is used to process a firstserver public key 114, and the first server public key 114 is used toestablish the secure connection. Other possibilities exist as well forvalues or settings specified in a set of cryptographic parameters 126without departing from the scope of the present invention.

At step 1102, in an exemplary embodiment the set of servers 105 n canreceive a first message 208 that includes a module identity 110. Thefirst message 208 could include a server instruction 414, a moduleencrypted data 403, and/or a module digital signature 405. In anexemplary embodiment, server 105 can receive other messages 208 andmodule public keys 111 both before and after steps 1101 and step 1102,as well as other steps contemplated herein. In other words, the variousmessages and responses illustrated in FIG. 11 can comprise subsets ofall messages and responses, such that the subsets comprise illustratedembodiments of the present invention. Note that step 1102 could takeplace before or after steps 1101 and 1103. Although not illustrated inFIG. 11, a set of servers 105 n could also receive can receive over timea series of module public keys 111 associated with module 101 includingthe module identity 110. Each member of the series of module public keys111 could be received in a message 208 that could also include a modulepublic key identity 111 a in order to track the module public keys 111in the series. A set of servers 105 n could receive the series of modulepublic keys 111 associated with module 101 including the module identity110 using a step 1004 depicted and described in connection with FIG. 10above.

At step 1103, a set of servers 105 n can verify a module digitalsignature 405 with module identity 110 using a first module public key111. The first module public key 111 could be received and recorded by aset of servers 105 n before or after step 1101, including receiving thefirst module public key 111 with a module identity 110 from module 101in a message 208. Note that the module digital signature 405 does notneed to be received in the message 208 received at step 1102, and moduledigital signature 405 could be received in a different message 208. Inan exemplary embodiment, the common feature of steps 1102 and steps 1103can comprise that a set of servers 105 n performs the action, and amodule 101 with a module identity 110 submitted the data illustrated inorder for a set of servers 105 n to perform the actions described insteps 1102 and 1103.

At step 1104, in an exemplary embodiment the set of servers 105 n cansend a first response 209 that includes server digital signature 506,where server digital signature 506 is processed using a second serverprivate key 105 c, and the second server private key 105 c can bedifferent than the first server private key 105 c used in step 1101. Asexemplary embodiments, (i) the first server private key 105 c from astep 1101 could be an RSA-based key such as, but not limited to, aprivate key associated with an exemplary RSA-based public key depictedand described in connection with FIG. 1 g of U.S. patent applicationSer. No. 14/039,401, filed Sep. 27, 2013 in the name of John Nix, and(ii) the second server private key 105 c from a step 1104 could be anECC-based key such as, but not limited to, a private key associated withan exemplary ECC-based public key depicted and described in connectionwith FIG. 1 h of U.S. patent application Ser. No. 14/039,401, filed Sep.27, 2013 in the name of John Nix. Note that the second server privatekey 105 c can also be associated with a second set of cryptographicparameters 126 that are different or not equal to a first set ofcryptographic parameters 126 that are associated with the first serverprivate key 105 c used in a step 1101. The second set of cryptographicparameters 126 could be used by a key pair generation algorithms 141 eto process or derive the second server private key 105 c. Also note thatboth the first server private key 105 c used in step 1101 and the secondserver private key 105 c used in step 1104 can each be associated with adifferent random number 128 a, where the different random numbers 128 acould also each be used by a key pair generation algorithms 141 e toprocess or derive the first server private key 105 c and the secondserver private key 105 c, respectively.

At step 1105, in exemplary embodiments the set of servers 105 n canreceive a second message 208 that includes a module identity 110. Themessage 208 could include a server instruction 414, a module encrypteddata 403, and/or a module digital signature 405. At step 1106, the setof servers 105 n can send a second response 209 with a set ofcryptographic parameters 126, where module 101 can use the set ofcryptographic parameters 126 to derive a second module public key 111and a corresponding module private key 112, potentially by using a step515. According to an exemplary embodiment, the set of cryptographicparameters 126 sent by a set of servers 105 n in a step 1106 could beincluded in a server encrypted data 504. Security of a system 100 andother systems herein can be increased by encrypting a set ofcryptographic parameters 126 sent to a module 101. In an exemplaryembodiment, the set of cryptographic parameters 126 sent in a step 1106can include at least one of (i) the name or value for a symmetricciphering algorithm 141 b, (ii) parameters or values for a module randomseed file 139, (iii) the name or value for an asymmetric cipheringalgorithm 141 a, (iv) the name or value for a digital signaturealgorithm 141 d, (iv) a value for a key pair generation algorithm, (v) aname or value for an elliptic curve defining equation, and/or (vi) avalue for a key derivation function 141 f. Module 101 could use the setof cryptographic parameters 126 sent in a step 1106 with a key pairgeneration algorithms 141 e and a random number generator 128 to derivethe second module public key 111. Module 101 could use a step 515 toderive the second module public key 111 and a corresponding moduleprivate key 112.

At step 1107, in an exemplary embodiment a set of servers 105 n canreceive (i) the second module public key 111 and a module identity 110,and (ii) verify the second module public key 111 using the first modulepublic key 111 received in a step 1103. In an exemplary embodiment, thea set of servers 105 n can use the first module public key 111 to verifythe received second module public key 111 using at least one of severalsub-steps. The sub-steps at step 1107 to verify the second module publickey 111 using the first module public key 111 could comprise any of (i)receiving the second module public key 111 and a module identity 110with a module encrypted data 403 that uses a symmetric cipheringalgorithm 141 b, where the symmetric key 127 for encrypting anddecrypting the module encrypted data 403 at step 1107 could previouslybe communicated before step 1107 using the first module public key 111(such as a server 105 in the set of servers 105 n sending the symmetrickey 127 to module 101 in a server encrypted data 504, where the serverencrypted data 504 was ciphered with an asymmetric ciphering algorithm141 a and the first module public key 111), (ii) receiving the secondmodule public key 111 and module identity 110 with a module digitalsignature 405 where the module digital signature 405 is verified by theset of servers 105 n using the first module public key 111 (and module101 could process the module digital signature 405 with the moduleprivate key 112 for the first module public key 111 used in a step1103), and/or (iii) using a derived shared secret key 129 b with amessage digest authentication for verifying a received message 208 withthe second module public key 111 at step 1107, where the derived sharedsecret key 129 b was processed using a key derivation function 141 f andthe first module public key 111. Other possibilities exist as wellwithout departing from the scope of the present invention for using thefirst module public key 111 from a step 1103 to verify the second modulepublic key 111 at a step 1107.

At step 1108, in exemplary embodiments a set of servers 105 n candecrypt a module encrypted data 403 using the verified second modulepublic key 111, where the second module public key 111 was verified in aprevious step 1107. The module encrypted data 403 be received in amessage 208 and could include a server instruction 414, sensor data 604b, a security token 410, a timestamp 604 a, and/or other data. The setof servers 105 n can decrypt the module encrypted data 403 in a receivedmessage 208 at step 1108 using the second module public key 111. In oneembodiment, the module encrypted data 403 in step 1108 could be cipheredwith a symmetric key 127, where the symmetric key 127 was received in aprior module encrypted data 403 before step 1108 and the symmetric key127 in the prior module encrypted data 403 before step 1108 could be (i)ciphered using an asymmetric ciphering algorithm 141 a and the secondmodule public key 111, or (ii) ciphered using a symmetric cipheringalgorithm 141 b and a derived shared secret key 129 b, where the derivedshared secret key 129 b was derived using the second module public key111 and a key derivation function 141 f. The symmetric key 127 receivedin a prior module encrypted data 403 before step 1108 with a moduleidentity 110 could be recorded in a shared module database 105 k. A setof servers 105 n, including one member of the set of servers 105 n,could access the shared module database 105 k in order to obtain or readthe symmetric key 127. In another embodiment, the prior module encrypteddata 403 received prior to step 1108 with the symmetric key 127 could beciphered with a different key that was communicated using the secondmodule public key 111. Other possibilities exist as well withoutdeparting from the scope of the present invention for a set of servers105 n to use the second module public key 111 to decrypt a moduleencrypted data 403 in a step 1108.

At step 1109, a set of servers 105 n can send sensor data 604 b to anapplication server 171 and/or application 171 i using the first serverprivate key 105 c. The sensor data 604 b could be received in a moduleencrypted data 403, such as but not limited to sensor data 604 b thatcould be received in a module encrypted data 403 at step 1108. Thesensor data 604 b could be sent to application server 171 and/orapplication 171 i using a secure connection data transfer 802, where thesecure connection data transfer 802 was established via a secureconnection data setup 801, and the secure connection data setup 801could use the first server private key 105 c at step 1101. A secureconnection data transfer 802 using a first server private key 105 c isdepicted and described in connection with FIG. 8. In this manner, (i) aset of servers 105 n can use a first server private key 105 c, with anassociated set of cryptographic parameters 126, to communicate with anapplication server 171 and/or application 171 i, and (ii) a set ofservers 105 n can use a second server private key 105 c, with adifferent associated set of cryptographic parameters 126, to communicatewith a module 101. The first and second server private keys 105 c, couldeach use a set of cryptographic parameters 126 that are selected inorder to optimize or enhance a desired level of security and efficiencyfor communicating (i) with another server for the first server privatekey 105 c and (ii) with a set of modules 101 for the second serverprivate key 105 c.

FIG. 12

FIG. 12 is a simplified message flow diagram illustrating an exemplarysystem with exemplary data transferred between a module and anapplication using a server, in accordance with exemplary embodiments.System 1200 can include an application server 171, a server 105, and amodule 101. Although a single application server 171, server 105, andmodule 101 are illustrated in FIG. 12, a system 1200 could include aplurality of any of these elements. Application server 171 can includeapplication 171 i and utilize IP:port 702 for communicating with server105. Although not illustrated in FIG. 12, application server 171 couldalso communicate with other servers or nodes on the Internet, includinga user 183 via a web portal 171 j illustrated in FIG. 1 d, or anenterprise resource planning (ERP) system (not shown). The nodesillustrated in FIG. 12 could communicate using Internet protocols suchas, but not limited to, TCP and/or UDP, and the network between server105 and application server 171 could be either via the public Internet107 or a private intranet or a VPN layered on top of the public Internet107. Other possibilities exist as well, and according to an exemplaryembodiment, application server 171 and server 105 can be connected via aLAN, such that packets between the two do not route over the publicInternet 107. Sending data between two nodes on a LAN can also beconsidered using a secure connection data transfer 802.

Server 105 can include a module controller 105 x, a shared secret key510, and a module identity 110, in addition to the other components andvalues shown for a server 105 illustrated in FIG. 1 f and FIG. 1 c,including a module database 105 k, and one or more server private keys105 c. Shared secret key 510 is depicted and described in connectionwith FIG. 5 b, and can also comprise a pre-shared secret key 129 a inone embodiment where server 105 receives a module public key 111 frommodule 101 for the first time (i.e. before server 105 sends or receivesencrypted data with module 101). As contemplated herein, a server 105may also comprise a set of servers 105 n, such that the set of servers105 n can perform the actions depicted and described for a server 105illustrated in FIG. 12 and other Figures. Module identity 110 cancomprise an identity for module 101, and is also depicted and describedin connection with FIG. 1 e and elsewhere herein. Server 105 can useIP:port number 901 for communicating with application server 171 andIP:port number 207 for communicating with module 101 and other modules.Note that server 105 could also use multiple IP:port numbers 901 and 207in a system 1200, such as, but not limited to, a first IP:port number901 to communicate with a first application server 171 and/orapplication 171 i, a second IP:port number 901 to communicate with asecond application server 171, a first IP:port number 207 to communicatewith a first set of modules 101, a second IP:port number 207 tocommunicate with a second set of modules 101, etc. The IP addresses andport numbers within an IP:port number 901 and 207 can also change overtime.

Module controller 105 x is depicted and described in connection withFIG. 1 c, FIG. 8, FIG. 9, and elsewhere herein. Module controller 105 xcan transmit, send, and receive packets for server 105 using IP:portnumber 207. Although a single module controller 105 x and server 105 areillustrated in FIG. 12, a server 105 could include multiple modulecontrollers 105 x that are distributed, and server 105 could also bedistributed such that different sub-servers 105 w perform the functionof server 105 in an exemplary embodiment, and the sub-servers 105 wcould also include the module controller 105 x. Module 101 in system1200 can comprise a module 101 as depicted and described in connectionwith FIG. 1 a, FIG. 1 b, FIG. 1 d, FIG. 2, and elsewhere herein. Module101 can include a module identity 110 and a shared secret key 510 andutilize an IP:port number 204 for sending and receiving data with server105. IP:port number 204 can also change over time, such that module 101uses either a different IP address 202 or port number 203 when (i)sending one message 208 or a series of message 208 to (ii) sending thenext message 208 or series of messages 208. According to an exemplaryembodiment, module 101 can connect with multiple different networks 102over time and each network 102 may provide a different IP address 202 tomodule 101. Alternatively, the same network 102 may provide a differentIP address 202 for module 101 at different times.

In an exemplary embodiment, module 101 can use a different IP address202 between either periods of sleep or when a DHCP lease expires, andother possibilities exist as well. As in other Figures in the presentinvention, IP addresses illustrated in FIG. 12 may comprise either IPv4or IPv6 addresses. System 1200 may include a firewall 104, which mayoperate between module 101 and server 105, and firewall 104 can provideNAT routing functionality, such that IP address 210 illustrated in FIG.12 is different than IP address 202 (in FIG. 2), and firewall 104 maytranslate ports as well. Note that firewall 104 may also be a symmetricfirewall 104 illustrated in FIG. 9, such that addresses and ports arenot translated by firewall 104, but in this case IP:port 204 may changeover time in exemplary embodiments (such as, but not limited to, frommodule 101 using different networks 102, or acquiring different IPaddresses 202 between periods of sleep, etc.). The IP address 210 andport number 605 illustrated in FIG. 12 for firewall 12 can comprise theIP address and port number on the external interface of firewall 104,such that packets routed to/from the Internet 107 with module 101 coulduse IP address 202 and port number 605 as a source/destination IP:portnumber, respectively.

Prior to step 1201, module 101 may optionally derive a module public key111 and a module private key 112 using a step 515, as depicted anddescribed in connection with FIG. 5 b. Note that the internal derivationof module public key 111 and module private key 112 using a step 515 arenot required to use the other components and steps illustrated in asystem 1200. A system 1200 (or system 1300 below in FIG. 13) can also beused in an alternative embodiment where module private key 111 isobtained by other means than internal derivation using a key pairgeneration algorithm 141 e, such as loading module private key 112 intoa nonvolatile memory 101 c or 101 w upon manufacturing, distribution, orinstallation or a module 101 or at other times. However, in an exemplaryembodiment, a system 1200 illustrated in FIG. 12 can be useful forsecure and efficient communication between a module 101, server 105, andapplication server 171 when module 101 also derives the module privatekey 112 and module public key 111, potentially by using a step 515. Thederivation of keys does not need to use and/or be associated withIP:port 204, and step 515 is illustrated in FIGS. 12 and 13 are shownfor an exemplary sequence of timing and location of message flows, suchthat key derivation using a step 515 can take place before a step 1201.

At step 1201, in an exemplary embodiment server 105 can use a modulecontroller 105 x to receive a first message 208 that includes modulepublic key 111. The first message 208 can also include a module identity110, or other identifying information such that server 105 can determinethe first message 208 with module public key 111 is associated withmodule identity 110. The first message 208 can also preferably include amodule public key identity 111 a associated with the module public key111. Although not illustrated in FIG. 12, at step 1201 module controller105 x can also receive a set of cryptographic parameters 126 associatedwith module public key 111, such as, but not limited to, a value for anelliptic curve defining equation, a RSA modulus, a time-to-live value orexpiration date, etc. As received by server 105 (i.e. after traversingfirewall 104), the source IP address and source port number in message208 can comprise IP address 210 and port number 605, which can bedifferent than IP:port number 204 due to network address translation bya firewall 104. Module controller 105 x can use IP:port number 207 toreceive the first message 208, wherein IP:port number 207 can comprise adestination address in a packet header of the first message 208 asillustrated in FIG. 6 a. Although depicted in FIG. 12 as a “firstmessage” 208, module 101 may have previously sent messages 208 to server105, and the “first message” 208 can comprise the first message 208received within the series or sequence of packets illustrated in FIG.12. Other messages 208 may potentially flow before and/or after a “firstmessage” 208. This terminology of “first message”, “second response”,“second public key”, etc. contemplated in various Figures herein mayrefer to the “first message”, “second response”, “second public key”,“first set of parameters”, etc. described in the illustrated flowswithin each Figure. Other messages, responses, keys, and parameters maybe communicated before and/or after a depicted “first message”, “secondresponse”, “second public key”, etc. and the depicted elements cancomprise a subset of other messages, responses, keys, etc. that may alsoflow in addition to the elements illustrated.

Although server 105 is illustrated as receiving module public key 111 inFIG. 12 using a module controller 105 x, a first sub-server 105 w couldreceive module public key 111, and a different sub-server 105 w orserver 105 using a different module controller 105 x could send and/orreceive subsequent messages and responses illustrated in FIG. 12. Thus,a system 1200 could use a plurality of module controllers 105 x in acoordinated manner to operate as a single module controller 105 xillustrated in FIG. 12 and FIG. 13. In an exemplary embodiment, server105 can receive module public key 111 at a step 1201 due to any of (i)module 101 communicating with server 105 for the first time, (ii) module101 deriving a new module public key such as using step 515 in FIG. 5 b,or (iii) an end user, technician, or distributor loading a new modulepublic key 111 (with a module private key 112) into module 101, andother possibilities for reasons for receiving module public key 111exist as well without departing from the scope of the present invention.In an exemplary embodiment, server 105 has already securely communicatedwith module 101 using a different or prior module public key 111 (notshown, and also possibly with a different set of parameters 126) beforereceiving the module public key 111 illustrated in FIG. 12, and themodule public key 111 at step 1201 can represent a new module public key111 to be used with subsequent communications. In an exemplaryembodiment, the module public key 111 received at step 1201 in FIG. 12comprises an exemplary message 208 illustrated in FIG. 6 b. Server 105could also receive the new module public key 111 in FIG. 12 bypreviously sending a module instruction 502 for module 101 to derive anew module public key 111 and module private key 112 using a set ofparameters 126, and other possibilities exist as well.

At step 1202 in exemplary embodiments module controller 105 x and/orserver 105 can verify or authenticate module public key 111, where thereceived data that includes module public key 111 also includes areceived module identity 110. Module controller 105 x and/or server 105could authenticate and/or verify module public key 111 is associatedwith the recorded module identity 110 using a step 517 depicted anddescribed in connection with FIG. 5 b, including using a shared secretkey 510. At step 1202, module controller 105 x can also use a set ofcryptographic parameters 126 and a set of cryptographic algorithms 141to verify or authenticate module public key 111 at step 1202. In oneexemplary embodiment, step 1202 could use a message digestauthentication and the shared secret key 510 to verify a response frommodule 101 with the message digest. At step 1202, module controller 105x and/or server 105 can take other actions besides message digest usingthe shared secret key 510 to determine if module 101 has the sharedsecret key 510. Upon determination that module 101 has the shared secretkey 510 (i.e. determining the received module public key 111 isassociated with the recorded module identity 110 via the shared secretkey 510) then module public key 111 with the received module identity110 can be authenticated and/or verified. In one exemplary embodimentmodule controller 105 x and/or server 105 could use shared secret key510 in processing a symmetric key 127, such that if server 105 candecrypt data sent with module public key 111 and a symmetric cipheringalgorithm 141 b, then server 105 can determine that module 101 has theshared secret key 510. Shared secret key 510 could also be used bymodule 101 in sending a secure hash signature with the module public key111 at step 1201 (where shared secret key 510 is used by module 101 togenerate the secure hash signature), and server 105 could verify thereceived secure hash signature with the shared secret key 510 and asecure hash algorithms 141 c at step 1202.

Other possibilities exist as well for authenticating and/or verifyingmodule public key 111 at step 1202, and the use of a shared secret key510 is not required in order to authenticate and/or verify that modulepublic key 111 is associated with a recorded module identity 110 at astep 1202. A set of cryptographic parameters 126 that were received withmodule 101 in step 1201 could also specify the actions or processes thatmodule controller 105 x and/or server 105 can use to authenticate and/orverify module public key 111 at step 1202. In an exemplary embodiment,server 105 can authenticate and/or verify module public key 111 isassociated with module identity 110 using a certificate 122 and asignature from a certificate authority 118, such as using a step 412depicted and described in connection with FIG. 4. In this embodimentwith a certificate authority 118 or another server performing steps 1201and 1202, the certificate authority 118 or another server may operate inconjunction with server 105 and/or module controller 105 x and performan authentication and/or verification of module public key 111. Inanother exemplary embodiment, server 105 and/or M2M service provider 108(with potentially a different server than the server 105 illustrated inFIG. 12) may have communicated with module 101 prior to receiving modulepublic key 111 at step 1201, and in this case server 105 could use adifferent key than shared secret key 510 to authenticate and/or verifyat step 1201 module public key 111 illustrated in FIG. 12 is properlyassociated with module identity 110, such as using the different key(not shown) with a message digest, module digital signature 405,symmetric ciphering algorithm 141 b, and/or secure hash algorithms 141 cusing data received with module public key 111. A set of parameters 126received with module public key 111 at step 1201 could specify thatmodule controller 105 x use the different key to authenticate and/orverify module public key 111 at step 1202. Servers for a certificateauthority 118, M2M service provider 108, module provider 109, and/orserver 105 connected via a network can also operate or function as a setof servers 105 n.

In another embodiment, server 105 and/or M2M service provider 108 maypreviously have communicated a symmetric key 127 with module 101, andthe symmetric key 127 could be used to authenticate and/or verify modulepublic key 111 at step 1202. Server 105 could receive the symmetric key127 from (i) the M2M service provider 108, or (ii) module 101 beforestep 1201 (in a previous state where module 101 was authenticated withserver 105). Module public key 111 at step 1201 and/or other data couldbe sent in a module encrypted data 403 using the symmetric key 127, anddecrypting the module public key 111 from a step 1201 with the symmetrickey 127 can determine that module public key 111 is authenticated and/orverified at a step 1202.

In another embodiment, server 105 could have received a prior modulepublic key 111 (possibly from M2M service provider 108 or anotherauthenticated and/or verified source) before the received module publickey 111 from step 1201 illustrated in FIG. 12, and server 105 and/ormodule controller 105 x could use the prior module public key 111 and amodule digital signature 405 (processing using a prior module privatekey 112) sent with the module public key 111 at step 1201 illustrated inFIG. 12 to determine that the module public key 111 is authenticatedand/or verified at a step 1202. In accordance with exemplaryembodiments, step 1202 can authenticate and/or verify that receivedmodule public key 111 is properly associated with the module identity110 recorded in server 105 in order to securely communicate with module101 at subsequent steps illustrated in FIG. 12, thereby securing asystem 1200. Without proper authentication and/or verification thatmodule public key 111 is properly associated with a recorded moduleidentity 110 at step 1202 by using the exemplary embodiments describedherein, a system 1200 may be vulnerable to an imposter, hackers, orfraudulent submissions of module public key 111 and/or subsequentcommunication with the wrong (or fraudulent) module 101 in subsequentcommunications.

At step 1202 a, an application interface 105 i can send the received andverified module public key 111 to application server 171 and/orapplication server 171 i via a secure connection data transfer 802 andan application message 701. The application message 701 can also includethe module identity 110, a module public key identity 111 a, and a setof cryptographic parameters 126, and the module identity 110, the modulepublic key identity 111 a, and the set of cryptographic parameters 126could be also received in the message 208 at step 1201. Although notillustrated in FIG. 12, application server 171 and/or application 171 icould (i) record the data received in step 1202 a and also (ii) sendvalues received in application message 701 at step 1202 a to a secondserver 105, such as a second server 105 (not shown in FIG. 12)illustrated in FIG. 1 h using a second secure connection data transfer802. In this manner, a second server 105 can record the module identity110, the verified module public key 111, the module public key identity111 a, and the set of cryptographic parameters 126 associated withmodule public key 111 in a module database 105 k associated with thesecond server 105.

In another embodiment, at step 1202 a, server 105 could record themodule identity 110, the verified module public key 111, the modulepublic key identity 111 a, and the set of cryptographic parameters 126associated with module public key 111 in a shared module database 105 k(such as the module database 105 k illustrated in FIG. 1 h), and asecond server 105 could have access to the data by querying the sharedmodule database 105 k. A shared module database 105 k is alsoillustrated in FIG. 1 h. In an embodiment where server 105 accesses ashared module database 105 k, at step 1202 a the module public key 111and related data (such as, but not limited to, module identity 110),could be sent to the shared module database 105 k via the message shownin step 1202 a instead of sending the message to application server 171.In this case by using a shared module database 105 k, the message atstep 1202 a could comprise or trigger an “insert” command or message toshared module database 105 k, where the insert command could include (i)a table name, (ii) the received and verified module public key 111,(iii) the module identity 110, (iv) a set of cryptographic parametersfor module 101, and (v) a module public key identity 111 a. In thismanner with exemplary embodiments, by sharing module database 105 k withmultiple servers 105, communication with module 101 and a plurality ofservers 105 can be more efficient, since each server 105 can access datasuch as a previously recorded and verified module public key 111, moduleidentity 110, module public key identity 111 a, and set of cryptographicparameters 126 associated with each module 101. By reducing thetransmission of messages between a module 101 and different servers 105over the lifetime of module 101, a system can be simultaneously moresecure and more efficient.

By a second server 105 receiving the values from application server 171and/or application 171 i, the second server 105 can also record thatmodule 101 with the module public key 111 (received in step 1201 shownin FIG. 12) and module identity 110 has been verified. In addition,although server 105 is illustrated as sending the module public key 111to application server 171 in FIG. 12 at step 1202 a, server 105 couldalternatively send the module public key 111, the module identity 110, amodule public key identity 111 a, and a set of cryptographic parameters126 associated with module 101 directly to a second server 105, such as,but not limited to, server B 105 depicted and described in connectionwith FIG. 1 h. Server 105 could send the module public key 111, themodule identity 110, a module public key identity 111 a, and a set ofcryptographic parameters 126 associated with module 101 to the secondserver B 105 illustrated in FIG. 1 h using a secure connection datatransfer 802. In another embodiment, a second server B 105 illustratedin FIG. 1 h could access the verified module public key 111 from steps1201 and 1202 by accessing a module database 105 k where server 105 hadrecorded the module public key 111, the module identity 110, a modulepublic key identity 111 a, and a set of cryptographic parameters 126associated with module 101.

At step 1203, module controller 105 x can send a server digitalsignature 506 with a server identity 206, and server digital signature506 could be processed as described in FIG. 5 a. In an exemplaryembodiment, module controller 105 x and/or server 105 could use (i) afirst server private key 105 c, (ii) a set of cryptographic parameters126, and (iii) a digital signature algorithm 141 d to process and/orcreate server digital signature 506. Module controller 105 x can useIP:port number 207 for sending server digital signature 506. In anexemplary embodiment, a second server private key 105 c using adifferent set of cryptographic parameters 126 could be used with secureconnection setup 801 to application 171 i. In one embodiment, firstserver private key 105 c can use ECC algorithms 154 and the secondserver private key 105 c can use RSA algorithms 153, and the selectionof ECC algorithms 154 or RSA algorithms 153 can be specified in a set ofcryptographic parameters 126, although other possibilities exist aswell. In another embodiment, a single server private key 105 c (possiblywith a single set of cryptographic parameters 126) can be used for bothserver digital signature 506 and secure connection setup 801. Serverdigital signature 506 could be sent within a response 209, and althoughnot illustrated in FIG. 12, server digital signature 506 could beassociated with or sent with a packet that includes a symmetric key 127for use by module 101. A set of parameters 126 used with processingserver digital signature 506 can be sent by module controller 105 xbefore, with, or after step 1203.

Although not illustrated in FIG. 12, module controller 105 x could alsosend server encrypted data 504 to module 101 at step 1203, where theserver encrypted data 504 can include exemplary values such as, but notlimited to, an actuator instruction 706, a module instruction 502, asecurity token 401, additional cryptographic parameters 126, a symmetrickey 127, or an acknowledgement that a message 208 has been received. Inaccordance with a preferred exemplary embodiment, module controller 105x sends a server digital signature 506 with server identity 206 tomodule 101 in a step 1203 upon the successful authentication and/orverification of module public key 111 received in step 1202 above.Module 101 can use the server digital signature 506, server public key114, a set of parameters 126, and a digital signature algorithm 141 d toverify the identity of server 105 used in FIG. 12. Server digitalsignature 506 may also be sent with or as a signal that the modulepublic key 111 was properly received in a step 1201 and/or authenticatedor verified at a step 1202. In one embodiment, the set of parameters 126can specify (i) a secure hash algorithm 141 c to use with a digitalsignature algorithm 141 d (such as, but not limited to, either SHA-256,SHA-3, etc.), and (ii) additional details for processing a secure hashalgorithm 141 c used with a digital signature algorithm 141 d such asthe format or order of strings or values input into a secure hashalgorithm 141 c. In another embodiment, digital signature algorithms 141d can include logic for the format, order, strings or values, andencoding to use for processing a digital signature including a serverdigital signature 506 and/or a module digital signature 405. In otherwords, a set of parameters 126 and/or digital signature algorithms 141 dcan include settings such that a server 105 and module 101 cancalculate, derive, or process the same digital signature as the othernode.

At step 1204, a module controller 105 x can receive a module digitalsignature 405. Module controller 105 x can use an IP:port number 207 toreceive the module digital signature 405. Although not illustrated inFIG. 12, module controller 105 x can receive module digital signature405 with a module identity 110. In addition, although the receipt ofmodule digital signature 405 is depicted as after the sending of serverdigital signature 506, module digital signature 405 could be receivedbefore the sending of server digital signature 506 in exemplaryembodiments. Processing a module digital signature 405 is also depictedand described in connection with FIG. 4 above and elsewhere herein.Module digital signature 405 could be received in a message 208, whichcould be formatted with the exemplary format for a message 208 inillustrated in FIG. 6 a, and other possibilities exist as well.

Module digital signature 405 received in step 1204 can also include asymmetric key 127, and symmetric key 127 could be ciphered using anasymmetric ciphering algorithm 141 a, where a module 101 used a serverpublic key 114 in order to encrypt the symmetric key 127. Symmetric key127 could be used with a symmetric ciphering algorithm 141 b and a setof parameters 126 at subsequent (i) step 1207 to decrypt data within asecond message 208 and/or (ii) step 1208 to encrypt data within aresponse 209. The use of a symmetric key 127 with a set of parameters126 is depicted and described in connection with FIG. 1 e, FIG. 3, FIG.4, and FIG. 5 a, and elsewhere herein. In an exemplary embodiment, thereceipt of module digital signature 405 at step 1204 can be omitted, andthe verification of messages or packets from module 101 can be processedwith other means, such as using the shared secret key 510. However, overtime and with a change of the use of IP addresses such as, but notlimited to, changing source IP:port number 210:605, and possibly usingdifferent sub-servers to receive messages from module 101, the periodictransmission of a module digital signature 405 may be preferred.

At step 1205, module controller 105 x can verify the module digitalsignature 405 for module identity 110 received in step 1204 using themodule public key 111 (i) received in step 1201 and (ii) authenticatedin step 1202. At step 1205, module controller 105 x can use a set ofparameters 126, the module public key 111 received in step 1201, digitalsignature algorithms 141 d, secure hash algorithms 141 c, and moduleidentity 110 in order to verify module digital signature 405. Althoughnot illustrated in FIG. 12, after step 1205, module controller 105 x canthen follow the sequence of steps illustrated in FIG. 3 to processadditional messages 208 and responses 209 from/to module 101, untilapplication message 701 with module instruction 502 is received at step1206 below. The symmetric key 127 received in step 1204 with a moduledigital signature 405 verified in a step 1205 could be used to receivemodule encrypted data 403 and send server encrypted data 504 after step1205.

At step 1205 a, after verifying the module digital signature 405received in step 1204 and verified in step 1205, an applicationinterface 105 i can send a symmetric key 127 for use with module 101 toapplication server 171 and/or application server 171 i via a secureconnection data transfer 802 and an application message 701. Thesymmetric key 127 sent in application message 701 could be received instep 1204, or the symmetric key 127 could be processed or generated byserver 105 and sent to module 101 in step 1203. The application message701 at step 1205 a can also include the module identity 110. Althoughnot illustrated in FIG. 12, application server 171 and/or application171 i could record the data received in step 1205 a and also send valuesreceived in application message 701 at step 1205 a to a second server105, such as a second server 105 (not shown in FIG. 12) illustrated inFIG. 1 h using a second secure connection data transfer 802. In thismanner, a second server 105 can record include the module identity 110and the symmetric key 127 with a module database 105 k for the secondserver 105. In another embodiment, at step 1205 a, server 105 couldrecord the received symmetric key 127 and module identity 110, plusoptionally related additional information, in a shared module database105 k. A second server 105, such as server B 105 illustrated in FIG. 1h, could access the symmetric key 127 and module identity 110 via theshared module database 105 k.

By a second server 105 receiving the symmetric key 127 and moduleidentity 110 from either (i) application server 171 or (ii) a sharedmodule database 105 k, the second server 105 can communicate with module101 using module identity 110 and the symmetric key 127 without thesecond server previously conducting the steps 1201 through 1204. In thismanner according to a preferred exemplary embodiment, a system 100 canbe made more efficient, since a second server 105 (such as the secondserver 105 illustrated as “Server B” in FIG. 1 h) can use the symmetrickey 127 received from application server 171 or shared module database105 k to communicate with module 101 without requiring sending orreceiving additional packets in order to establish or communicate asymmetric key 127. In addition, although server 105 is illustrated assending the symmetric key 127 to application server 171 in FIG. 12,server 105 could alternatively send the symmetric key 127 directly to asecond server 105, such as server B 105 depicted and described inconnection with FIG. 1 h. Server 105 could send the symmetric key 127and module identity 110 to the second server B 105 illustrated in FIG. 1h using a secure connection data transfer 802. Server 105 could use astep 1205 a to send the symmetric key 127 and module identity 110 to aplurality of servers, including and of a plurality of applicationservers 171, other servers 105, and a one or more shared moduledatabases 105 k.

At step 1206, in an exemplary embodiment server 105 can receive anapplication message 701 that includes a module instruction 502. Inexemplary embodiments, application message 701 received also includes amodule identity 110 in order to specify which module 101 from aplurality of modules 101 that module instruction 502 is intended as theultimate recipient. The application message 701 could be receivedthrough secure connection data transfer 802, which could be establishedusing secure connection setup 801. Application interface 105 x can useIP:port number 901 to receive application message 701, where applicationmessage 701 includes IP:port number 702 as a source IP:port number inthe packet header of application message 701, as illustrated in FIG. 7.Secure connection data transfer 802 and secure connection setup 801 aredepicted and described in connection with FIG. 8 above. As contemplatedherein, the term “secure connection” can refer to either secureconnection data transfer 802 or secure connection setup 801. Anapplication message 701 is depicted and described in connection withFIG. 7 through FIG. 9. A module instruction 502 within applicationmessage 701 can include an instruction, command, or data for module 101,possibly including any of the exemplary module instructions 502 depictedand described in connection with FIG. 7 for an exemplary moduleinstruction 502 in an application message 701. As illustrated in FIG.12, application message 701 received in step 1206 can be received aftera first message 208 and before a second message 208.

In the exemplary embodiment of system 199 illustrated in FIG. 1 h, theuse of a server 105 for routing module instruction between (i) anapplication 171 i and/or application server 171 and (ii) a module 101may be preferred for many different reasons, including supportingscalability, increasing security, reducing bandwidth, supporting legacycryptographic algorithms 141 supported on application server 171, and/orincreasing efficiency by using two different cryptographic schemes,where one is optimized for communication between modules and servers,and a second is optimized for communication between servers.

In exemplary embodiments, application message 701 from step 1206 can bereceived when (i) module 101 comprises a sleep or dormant state, (ii) afirewall port binding timeout value 117 associated with firewall 104 hasexpired, and/or (iii) communication with module 101 is not available forother reasons (such as, but not limited to, out of range of a wirelessnetwork, waiting for a battery 105 k to be recharged, etc.) For any ofthe above cases, outbound packets sent from module controller 105 xwould not normally be received by module 101. Consequently, afterreceiving application message 701 in step 1206, module controller 105 xcan begin waiting for a wait interval 703. As illustrated in FIG. 12,application interface 105 i can send application 171 i a secondapplication message 701 upon waiting for a second message 208 frommodule 101, where the second application message 701 can comprise anapplication update 704 instruction of “waiting”. Application update 704instruction of “waiting” can include module identity 110. In thismanner, application 171 i can be informed that module controller 105 xand/or server 105 comprise a state of wait interval 703 for the next orsecond message 208 from module 101. Wait interval 703 can end when thesecond message 208 is received from module 101 where the second message208 can include a module identity 110 received in the applicationmessage 701 at step 1206. The second message 208 can comprise the nextmessage 208 after server 105 receives the module instruction 502. Modulecontroller 105 x and/or server 105 can stop waiting when the nextmessage 208 is received from module 101, and the next message 208 isillustrated as a second message 208 in FIG. 12.

At step 1207, module controller 105 x can receive a second message 208from module 101. Module controller 105 x can receive the second message208 by monitoring an IP:port number 207. IP:port number 207 in step 1207can be the same value or address as IP:port number 207 in step 1201, orIP:port number 207 in step 1207 could be a different value or addressthan IP:port number 207 in step 1201. According to exemplaryembodiments, over time a specific address and/or numeric value for aport number used in an IP:port number contemplated herein can change. Inan exemplary embodiment, the second message 208 includes a source IPaddress of IP address 210 and a source port number of port number 605.As illustrated in FIG. 12, IP address 210 and port number 605 cancomprise an IP address and port number associated with the externalinterface of a firewall 104, and can represent a source IP:port numberin a packet header received in a message 208 as illustrated in FIG. 6 aand FIG. 2. In this exemplary embodiment, the numeric values for IP:portnumber 210:605 received in the second message 208 can be different thanthe numeric values for IP:port number 210:605 received in the firstmessage 208. IP:port number 210:605 received in the second message 208can be different than in the first message due to many factors,including (i) module 101 has moved to a different network 102 in step1207 after server 105 received the first message in step 1201, (ii)firewall 104 has changed a source port number 605 based on logicinternal to firewall 104 for allocating, sharing, using, and reusingport numbers with a plurality of connected nodes, and (iii) a network102 could also change the IP address 202 used by module 101.

Continuing at step 1207, the second message 208 can preferably include amodule identity 110, wherein the module identity 110 was previouslyverified as being associated with module public key 111 in step 1202.Module identity 110 in a second message 208 could comprise string ornumber with a different value than a module identity 110 received in thefirst message 208 at step 1201, such as, but not limited to, the moduleidentity 110 in the second message comprising a session identifierassociated with module identity 110. In exemplary embodiments, modulecontroller 105 x can process the string or number for module identity110 received in the second message 208 in order to associate the stringor value in a module identity 110 received in the second message 208 atstep 1207 with the string or value for a module identity 110 received inthe first message 208 at step 1201. As contemplated herein, exemplaryembodiments contemplate the use of different strings or values for thesame module identity 110. Different strings or values for a first moduleidentity 110 can be separated from different strings or values for asecond module identity 110 because (i) the strings or values as a firstmodule identity 110 can be associated with a first physical module 101,including possibly a serial number for the first physical module 101,whereas (ii) the strings or values as a second module identity 110 canbe associated with a second physical module 101, including possibly aserial number for the second physical module 101. Although notillustrated in FIG. 12, the second message 208 at a step 1207 couldinclude additional data such as, but not limited to, a module encrypteddata 403, a module digital signature 405, and/or a server instruction414. The server instruction 414 could be sent as plaintext in a body 602or could be encrypted or obfuscated.

At step 1208, in exemplary embodiments module controller 105 x can senda response 209 to the second message 208, and the response 209 caninclude the module instruction 502 received at step 1206. The secondmessage 208 and the response 209 can be sent and received as UDP packetsor datagrams. In an exemplary embodiment, module controller 105 x usesboth (i) IP:port number 207 that received the second message 208 as asource IP:port number in response 209, and (ii) the IP:port number210:605 received in the second message 208 as a destination IP:portnumber in response 209. In this manner, response 209 can traverse afirewall 104 in order to be received by module 101. In an exemplaryembodiment, module controller 105 x can send response 209 before theexpiration of a firewall port-binding timeout value 117, where the startof firewall port-binding timeout value 117 began when message 208traversed firewall 104. Module instruction 502 in response 209 can beformatted or encoded differently than module instruction 502 received inapplication message 701 at step 1206. Response 209 could include moduleinstruction 502 within a server encrypted data 504, where serverencrypted data 504 can be ciphered using the symmetric key 127 receivedin step 1204. In an exemplary embodiment, module instruction 502 can besent as plaintext in response 209, and in this case response 209 canpreferably include a server digital signature 506 in order for module101 to confirm or verify that server 105 and/or module controller 105 xsent module instruction 502.

According to an exemplary embodiment, at step 1209, module controller105 x can receive a server instruction 414 comprising an acknowledgementwith a timestamp 604 a when module 101 properly received and/or executedmodule instruction 502 from step 1208. Application interface 105 i cansend an application update 704 with the module identity 110, whereapplication update 704 can comprise (i) an acknowledgement that module101 with module identity 110 executed the module instruction 502received in step 1206, and (ii) a timestamp value 604 a when module 101properly received and/or executed module instruction 502. In exemplaryembodiments, the inclusion of timestamp 604 a can be important or usefulfor application 171 i to manage or control a plurality of modules 101via a server 105 or a set of servers 105 n. The timestamp 604 a can beuseful because module 101 may utilize sleep and/or dormant states, orpossibly having periodic outages or loss of access to Internet 107and/or network 102. As one example, there could also be an exemplarydelay of minutes or longer between module 101's execution of moduleinstruction 502 and when module 101 can send an acknowledgement such asserver instruction 414, possibly due to a sleep state or network outage.Additional unknown or uncertain time for application 171 i betweensending module instruction 502 at step 1206 the execution of moduleinstruction 502 by module 101 can include the wait interval 703.Consequently, in accordance with a preferred exemplary embodiment,server instruction 414 and application update 704 at step 1209 include atimestamp 604 a that module 101 executed module instruction 502.

Although not illustrated in FIG. 12, server instruction 414 couldinclude additional data such as sensor data 604 b or other dataassociated with a state of module 101 or a component within module 101including the state or value for an actuator 101 y. Server instruction414 could be included in a module encrypted data 403. Application update704 can include the sensor data 604 b and additional information. In oneembodiment, server instruction 414 can be received with a moduleidentity 110 and server instruction 414 with timestamp 604 a can beencrypted in a module encrypted data 403.

FIG. 13

FIG. 13 is a simplified message flow diagram illustrating an exemplarysystem with exemplary data transferred between a module and anapplication using a server, in accordance with exemplary embodiments.System 1300 can include an application server 171, a server 105, and amodule 101. Although a single application server 171, server 105, andmodule 101 are illustrated in FIG. 13, a system 1300 could include aplurality of any of these elements. System 1300 illustrated in FIG. 13can comprise the same components, steps, and message flows as system1200 illustrated in FIG. 12, with changes to support (i) a polling of amodule instruction 502 from application 171 i and/or application server171 in a step 1302 instead of (ii) receiving module instruction 502 in astep 1206 illustrated in FIG. 12.

Steps 1201 through step 1205 illustrated in FIG. 13 can comprise thesame steps 1201 through 1205 depicted and described in connection withFIG. 12. At step 1301, application 171 i can process a moduleinstruction 502 to be sent to a module 101 with a module identity 110.The determination and/or processing of a module instruction 502 could befor any reason application 171 i prefers for a state, value, or settingwithin a module 101 to change. Module instruction 502 could comprise anyof the exemplary module instructions 502 depicted and described inconnection with FIG. 7, and other possibilities exist as well. In oneexemplary embodiment, at step 1301 application 171 i could determinethat a setting for an actuator 101 y should change, such as based on theinput from a user 183 or other automated control decisions. Although notillustrated in FIG. 12 above, an application 171 i and/or applicationserver 171 within a system 1200 could also use a step 1301 beforesending the application message 701 with module instruction 502 in step1206, where the module instruction 502 can be processed at a step 1301in a system 1200 above.

According to an exemplary embodiment, illustrated in FIG. 13, after step1301 the wait interval 703 illustrated in FIG. 12 can be omitted by notreceiving module instruction 502 in an application message at step 1206.Instead, and as illustrated in FIG. 13, module controller 105 x couldreceive the second message 208 from a step 1207 after receiving themodule public key 111 in a step 1201. Upon or after receiving the secondmessage 208 in a step 1207, server 105 and/or application interface 105i can send application 171 i and/or application server 171 anapplication message 701 with a polling request at step 1302. In anexemplary embodiment, the polling request could signal that a module 101in a system 1300 is ready and available to receive the moduleinstruction 502. In an exemplary embodiment, application message 701 ina step 1302 can be sent using application interface 105 i and an IP:portnumber 901. The application message 701 can optionally be sent using asecure connection data transfer 802. The polling request in applicationmessage 701 at step 1302 can be useful since module 101 may use periodsof sleep or dormancy, and or periodically not be connected or accessiblethrough a network 102 and/or firewall 104, and in this case moduleinstruction 502 could not be transmitted or sent to module 101 atarbitrary times.

At step 1303, application 171 i can send the module instruction 502processed above at step 1301, after receiving the first applicationmessage 701 with the polling request. Module instruction 502 can be sentfrom application 171 i to application interface 105 i in a secondapplication message 701 at step 1303 and may also use a secureconnection data transfer 802. Application interface 105 i can receivethe second application message 701 with the module instruction 502. Asillustrated in FIG. 13, module controller 105 x can then use a step 1208to send the module instruction 502 in a response 209. System 1300 canthen also use step 1209 to receive a server instruction 414 with anacknowledgement and a timestamp 604 a, and send an acknowledgement 704to application 171 i and/or application server 171. In an exemplaryembodiment, a step 1209 can be optionally omitted, and timestamp 604 acould be optionally communicated in a separate application message 701at a later time or within other application messages 701 not depicted insystem 1300.

System 1300 illustrated in FIG. 13 may be preferred in a system where asingle application 171 i communicates with a server 105. In anotherembodiment, where multiple application servers 171 communicate with aserver 105 or a set of servers 105 n, then a system 1200 may bepreferred, where server 105 receives the module instruction withoutsending an application message 701 with a polling request. One reason isthat when multiple application servers 171 communicate with server 105,an application interface 171 i may not know the correct or properapplication server 171 in order to send the application message 701 withthe polling request at a step 1302 (since potentially many differentapplication servers 171 may be a source of the module instruction 502).Without knowing the proper application server 171 to send theapplication message 701 with the polling request, server 105 would thenneed to poll the plurality of application servers 171 each time a secondmessage 208 was received in a step 1207. A server 105 could receive manysecond messages 208 over time, and polling a plurality of applicationservers 171 each time a second message 208 was received couldsignificantly increase network traffic and load, and therefore may notbe efficient.

According to an exemplary embodiment, application 171 i can operatewithin server 105, and in this case IP:port 702 and/or IP:port 901 couldbe a loopback address and port number, which is reserved for the blockof IPv4 addresses 127.x.x.x, and a similar loopback port for IPv6addresses could be utilized as well when an application 171 i operateswithin server 105.

FIG. 14

FIG. 14 is a graphical illustration of an exemplary system that includesa set of application servers, a set of servers, and a set of modules, inaccordance with exemplary embodiments. System 1400 can include multipleapplication servers 171, multiple servers 105, and a plurality ofmodules 101. A large, distributed system of thousands or more modulesmay utilize multiple application servers 171, such as, but not limitedto, the multiple application servers 171 associated with one or moreenterprises with multiple operating divisions. Or, the applicationservers 171 in a system 1400 could each be associated with the sameenterprise, while separate application servers 171 could be associatedwith separate divisions. In another embodiment, M2M service provider 108may support different customers, where some customer may prefer orrequire the use of a different or segmented application server 171and/or application 171 i, and in this case an M2M service provider 108with a plurality of modules 101 and servers 105 may utilize differentapplication servers 171 for different customers. Multiple applicationservers 171 could comprise a set of application servers 171. Otherpossibilities exist as well for using a set of application servers, aset of servers, and a set or plurality of modules without departing fromthe scope of the present invention.

In an embodiment where multiple application servers 171 communicate withmultiple servers 105, a combination of steps with system 1200illustrated in FIG. 12 and steps within system 1300 illustrated in FIG.13 may be preferred. Before step 1206 in FIG. 14 (illustrated as a“First” step in a system 1400), any of the application servers 171 canprocess a module instruction 502 to be sent to a module 101 with amodule identity 110. With a plurality of application servers 171, eachapplication server can include or be associated with an applicationserver identity 1401. The determination and/or processing of a moduleinstruction 502 could be for any reason application 171 i and/orapplication server 171 prefers for a state, value, or setting within amodule 101 to change. Note that any of the illustrated applicationservers 171 could originate the module instruction 502, and thus aserver A 105 may not know beforehand which of the multiple applicationservers to poll upon receipt of a message 208 from module 101 (whichcould comprise a second message 208 illustrated in at step 1207 in FIG.12 and FIG. 13). At step 1206 in FIG. 14, the application server 171processing or originating module instruction 502 can send the moduleinstruction 502, the module identity 110, and the application serveridentity 1401 to a shared module database 105 k. The module instruction502 could be sent via a secure connection data transfer 802, and otherpossibilities exist as well, including application server 171 having aremote connection to shared module database 105 k. Application 171 icould take an action (including an HTTP post or similar message) thatwould trigger an insertion of the module instruction 502 with moduleidentity 110 into a database table within a shared module database 105k. Application 171 i and/or application server 171 could also issue aninsert command with module instruction 502, such as with, but notlimited to, an structured query logic (SQL) “insert” command.

The second step in a system 1400 could comprise module 101 sending amessage 208 to a member of the set of servers. Message 208 couldtraverse a firewall 104 and be received by server A 105. Message 208 can(i) include a module encrypted data 403 with a sensor measurement 604 aand (ii) be sent after a module 101 changes from a sleep or dormantstate to an active state. Message 208 could also be received by server A105 after network 102 and/or Internet 107 connectivity was restored formodule 101 after a period of network outage. A message 208 could besimilar to the exemplary messages 208 illustrated in FIG. 2, FIG. 6 a,FIG. 6 b, FIG. 9, and other possibilities exist as well. Message 208 caninclude a module identity 110. Message 208 in system 1400 could be asecond message 208 illustrated at step 1207 of FIG. 12 and FIG. 13. Inan exemplary embodiment, message 208 in a system 1400 is sent as a UDPdatagram 601 a with forward error correction, such that module 101 sendsmultiple copies of the UDP datagram 601 a (such as, but not limited to,sending an exemplary 3 copies of the same UDP datagram 601 a) and server105 can receive at least a subset of the multiple copies of the UDPdatagram 601 a. Although not illustrated in FIG. 14, server A 105 maypreferably already have taken steps before receiving message 208 for (i)verifying a module public key 111 and module identity 110 for module 101and/or (ii) authenticating communication with module 101 such using asymmetric key 127 to encrypt/decrypt data. Although a message 208 isillustrated in the second step in a system 1400, server A 105 couldreceive other datagrams from a module 101 besides a message 208.

The third step in a system 1400 can comprise server A 105 performing astep 1302 to poll shared module database 105 k for an incoming moduleinstruction 502 for module identity 110. Note that server A 105 may haveentered a waiting state or used a wait interval 703 (for communicationsrelated to module 101 with module identity 110) before performing a step1302 to poll shared module database 105 k. In accordance with apreferred exemplary embodiment, server A 105 may wait until afterreceiving message 208 (illustrated as the “Second” step in FIG. 14)before performing step 1302 because (i) before that time the moduleinstruction 502 may not be sent to module 101 due to firewall 104, and(ii) server A 105 may prefer to allow for time up until response 209 issent for a shared module database 105 k to collect all incoming moduleinstructions 502 from all sources. Step 1302 can utilize a secureconnection data transfer 802 or server A 105 may be able to perform SQLqueries or similar commands directly with shared module database 105 k.As contemplated herein and illustrated in FIG. 14, a server 105 can usean application interface 105 x to send and receive data with a sharedmodule database 105 k.

The fourth step in a system 1400 can comprise server A 105 receiving themodule instruction 502 for module identity 110 from the shared moduledatabase 105 k using a step 1303. The module instruction 502 wasreceived by shared module database 105 k from application server 171using a step 1206 illustrated above. Note that any of server A 105 andserver B 105 could use a step 1302 and step 1303 to communicate withshared module database 105 k, after receiving a message 208 or otherdata from a module 101. In an exemplary embodiment, step 1303 may alsocomprise a server 105 receiving the application server identity 1401with the module instruction 502 and module identity 110. By acquiringthe application server identity 1401 at a step 1303, a server 105 canrecord the proper application server 171 to send an acknowledgement anda timestamp 604 b at a subsequent time after successfully sending moduleinstruction 502 to module 101.

The fifth step in a system 1400 can comprise server A 105 sending aresponse 209 to the module 101 with module identity 110, and theresponse 209 can include the module instruction 502. The moduleinstruction 502 could be included in a server encrypted data 504. In anexemplary embodiment, response 209 is sent as a UDP datagram 601 b withboth (i) forward error correction and (ii) with a destination IP:portnumber in the UDP datagram 601 b equal to a source IP:port number in aUDP datagram 601 a received for the message 208. In exemplaryembodiments, response 209 is sent before the expiration of a firewallport-binding timeout value 117.

The sixth step in a system 1400 can comprise server A 105 receiving aserver instruction 414 of an acknowledgement and/or confirmation themodule instruction 502 was properly executed or processed by module 101,including a timestamp 604 a. Server instruction 414 at the sixth stepcould be sent in a second message 208 that also includes module identity110, and server instruction 414 could also be in a module encrypted data403. Timestamp 604 a could represent a time value associated with theprocessing of module instruction 502 by module 101, such as, but notlimited to, the time when module 101 implemented an actuator setting706, collected a sensor measurement 604 b, and other possibilities existas well. The timestamp 604 a could be valuable for an application server171 in order to keep track of the state of module 101 and/or a monitoredunit 119, since there can be delays between when application server 171originated a module instruction 502 and when module 101 executed orapplied module instruction 502 (in addition to delays when applicationserver 171 can receive a confirmation the module instruction 502 hasbeen executed).

The seventh step in a system 1400 can comprise server A 105 sending anapplication message 701 with the timestamp 604 a to application server A171. Application message 701 can also include the module identity 110.Note that server A 105 can obtain the proper application server 171 forsending application message 701 using the application server identity1401 received by server A 105 in a step 1303 above. Application message701 could also comprise an acknowledgement that module 101 properlyexecuted the module instruction 502.

CONCLUSION

Various exemplary embodiments have been described above. Those skilledin the art will understand, however, that changes and modifications maybe made to those examples without departing from the scope of theclaims.

What is claimed is:
 1. A method for supporting machine-to-machinecommunications, the method performed by a set of servers communicatingthrough at least one local area network interface, the set of serversincluding at least one computer processor for performing the steps ofthe method, the method comprising: receiving, from a module connected tothe set of servers from behind a firewall, a first message that includesa module identity of the module and a first source Internet protocoladdress and port (IP:port) number of the module, wherein the moduleidentity is verified using a first module public key; transmitting aquery to a module database and receiving a response from the moduledatabase, wherein the query includes the module identity, and whereinthe response includes at least a set of cryptographic parameters forderiving a public and private key pair; transmitting a response to themodule at the first source IP:port number, wherein the response includesthe set of cryptographic parameters; receiving, from the module, asecond message which includes a second module public key and the moduleidentity, the second module public key being of a public and private keypair derived from the cryptographic parameters, wherein the secondmessage is verified using the first module public key, and wherein atleast one member of the set of servers authenticates the second modulepublic key using (i) the module identity and (ii) at least a portion ofthe queried set of cryptographic parameters; receiving, from anapplication server, via a secure connection, a module instruction andthe module identity; receiving, from the module reconnected to the setof servers from behind the firewall, a third message after receiving themodule instruction, wherein the third message includes a second sourceIP:port number of the module and the module identity; and, transmittingthe module instruction within a server encrypted data to the module atthe second source IP:port number, wherein the server encrypted data isciphered using the second module public key, and wherein the first andsecond source IP:port numbers are different.
 2. The method of claim 1,wherein the set of cryptographic parameters includes at least one of (i)an elliptic curve cryptography (ECC) named curve, (ii) a value for anECC defining equation, (iii) a modulus for an RSA algorithm, (iv) atime-to-live value, (v) a value for a random number seed, (vi) a valuefor a module public key identity, or (vii) a value for a module randomseed file, and wherein the first message comprises a first series ofdatagrams, the second message comprises a second series of datagrams. 3.The method of claim 1, further comprising encrypting the set ofcryptographic parameters with a symmetric key, and transmitting theencrypted set of cryptographic parameters in the response to the module,wherein the first module public key comprises a first address for thefirst module public key, and wherein the second module public keycomprises a second address for the second module public key.
 4. Themethod of claim 1, wherein the set of servers includes at least a firstserver and a second server, wherein the first server receives the firstmessage and the second server receives the second message, wherein theset of servers includes the module database, wherein the module databaserecords the module instruction received from the application server,wherein the second server queries the module database for the moduleinstruction after receiving the second message, and wherein the set ofservers receives a series of public keys from the module after receivingthe first message.
 5. The method of claim 1, wherein the module with themodule identity sends (i) the first and the second messages, and (ii)the first and second module public keys, and wherein the module derivesthe second module public key using at least a set of cryptographicalgorithms and the set of cryptographic parameters, and wherein thefirst and second module public key are different.
 6. The method of claim5, wherein the module comprises a mobile phone, wherein the mobile phoneincludes an embedded universal integrated circuit card (eUICC), whereinthe eUICC records an initial module private key, wherein the set ofservers records an initial module public key and uses the initial modulepublic key to verify the module identity and the first module publickey, and wherein the eUICC uses the initial module private key to verifythe module identity and the first module public key with the set ofservers.
 7. The method of claim 1, wherein the set of servers uses thefirst module public key to process a shared secret key, wherein thesecond module public key in the second message is verified using theshared secret key, and wherein verifying the second message using theshared secret key comprises decrypting at least a portion of the secondmessage with the shared secret key.
 8. The method of claim 1, furthercomprising: receiving the module instruction from the applicationserver; decrypting the module instruction using a first server publickey, wherein the first server public key is processed using an RSAalgorithm; and, ciphering the server encrypted data using a secondserver public key, wherein the second server public key is processedusing an ECC algorithm.
 9. The method of claim 1, wherein verifying thesecond message using the first module public key comprisesauthenticating a module digital signature in the second message, whereinthe module digital signature is processed using a first module privatekey, wherein the first module private key is different than a secondmodule private key being of the public and private key pair derived fromthe cryptographic parameters, and wherein the first module private keycomprises a secret key for the first module public key.
 10. The methodof claim 1, wherein ciphering the server encrypted data using the secondmodule public key further comprises ciphering the server encrypted datawith a symmetric key, wherein the symmetric key is shared by using atleast one of (i) the second module public key and a key derivationfunction, (ii) an asymmetric ciphering algorithm and the second modulepublic key to encrypt the symmetric key, wherein the set of serverstransmits the symmetric key, or (iii) a digital signature verified withthe second module public key, wherein the set of servers receives thesymmetric key and the digital signature, wherein the symmetric key withthe module identity are recorded in the module database, and wherein thesymmetric key is processed using the set of cryptographic parametersselected from the module database using the module identity.
 11. Asystem for supporting machine-to-machine communications, the systemcomprising: a module controller for: monitoring a destination Internetprotocol address and port (IP:port) number, receiving, from a modulebehind a firewall, a first message comprising a module identity of themodule and a first source IP:port number of the module, wherein themodule identity is verified using a first module public key, sending tothe module at the first source IP:port number a set of cryptographicparameters for deriving a public and private key pair, receiving, fromthe module, a second message comprising a second module public key andthe module identity, the second module public key being of a public andprivate key pair derived from the cryptographic parameters, wherein thesecond message is verified using the first module public key, receiving,from the module reconnected from behind the firewall, a third messagecomprising the module identity of the module and a second source IP:portnumber of the module, wherein the first and second source IP:portnumbers are different, and sending a response to the third message fromthe destination IP:port number to the module at the second sourceIP:port number, wherein the response includes an encrypted moduleinstruction, wherein the encrypted module instruction is ciphered usingthe second module public key; an application interface for receiving,from an application server, the module instruction and the moduleidentity using a first server private key, wherein the moduleinstruction with the module identity is received after the secondmessage and before the third message, and wherein the module controllersends the response with the module instruction to the module at thesecond source IP:port number after receiving the third message; a sharedmodule database for recording a shared secret key, the module identity,the first module public key, and the set of cryptographic parameters,and for sending the set of cryptographic parameters to the modulecontroller in response to a query including the module identity; and, aprocessor for using (i) the set of cryptographic algorithms and theshared secret key to verify that the first module public key isassociated with the recorded module identity, (ii) a second serverprivate key and the set of cryptographic parameters to calculate aserver digital signature, wherein the server digital signature is sentfrom the destination IP:port number, and (iii) the module identity andthe set of cryptographic parameters to authenticate the second modulepublic key when it is received from the module.
 12. The system of claim11, further comprising: a set of servers, wherein the set of serversincludes the module controller and the application interface, whereinthe application interface uses a first IP address to receive the moduleinstruction and the module controller uses a second IP address toreceive the third message; and, the cryptographic algorithms fordecrypting at least one of the first module public key or the set ofcryptographic parameters.
 13. The system of claim 11, wherein verifyingthe first module public key using the shared secret key comprises usingthe shared secret key and at least one of (i) a message digestalgorithm, (ii) a module digital signature, wherein the module digitalsignature was processed using the shared secret key, or (iii) asymmetric ciphering algorithm, wherein the symmetric ciphering algorithmuses the shared secret key.
 14. The system of claim 11, furthercomprising the set of cryptographic algorithms for using (i) a firstserver public key with the application interface, and (ii) a secondserver public key with the module controller, wherein the first serverpublic key is associated with an RSA algorithm, and wherein the secondpublic key is associated with an elliptic curve cryptography (ECC)algorithm.
 15. The system of claim 11, wherein the set of cryptographicparameters includes at least one of (i) an elliptic curve cryptography(ECC) named curve, (ii) a value for an ECC defining equation, (iii) amodulus for an RSA algorithm, (iv) a time-to-live value, or (v) a valuefor a module public key identity, and wherein the first messagecomprises a first series of datagrams, and the second message comprisesa second series of datagrams.
 16. The system of claim 11, wherein thethird message includes a server instruction, wherein the serverinstruction is received in a module encrypted data, wherein the moduleencrypted data includes a security token, and at least one of a sensormeasurement, a registration message, or an acknowledgement, and whereinthe module encrypted data is processed using the set of cryptographicparameters.
 17. The system of claim 11, further comprising the modulecontroller for receiving a series of different module public keys withthe module identity after receiving the first message, wherein each ofthe different module public keys in the series is verified using a priormodule public key in the series.